Revert "Refactor prop types to omit redundant null for null | HTMLElement types"

#996
This commit is contained in:
metonym 2022-01-14 10:31:22 -10:00
commit f34412202d
13 changed files with 35 additions and 40 deletions

View file

@ -8,7 +8,7 @@ export interface ContextMenuProps
* If no element is specified, the context menu applies to the entire window
* @default null
*/
target?: HTMLElement | HTMLElement[];
target?: null | HTMLElement | HTMLElement[];
/**
* Set to `true` to open the menu