Skip to content

Commit

Permalink
[Menu] Add null as acceptable value of anchorEl (#12249)
Browse files Browse the repository at this point in the history
* Added null as acceptable value of anchorEl

#12210 (comment)

* let's merge
  • Loading branch information
LAITONEN authored and oliviertassinari committed Jul 23, 2018
1 parent e53ef8f commit 9ae90f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/material-ui/src/Menu/Menu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { ClassNameMap } from '../styles/withStyles';

export interface MenuProps
extends StandardProps<PopoverProps & Partial<TransitionHandlerProps>, MenuClassKey> {
anchorEl?: HTMLElement | ((element: HTMLElement) => HTMLElement);
disableAutoFocusItem?: boolean;
MenuListProps?: Partial<MenuListProps>;
PaperProps?: Partial<PaperProps>;
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/Popover/Popover.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type PopoverReference = 'anchorEl' | 'anchorPosition' | 'none';
export interface PopoverProps
extends StandardProps<ModalProps & Partial<TransitionHandlerProps>, PopoverClassKey, 'children'> {
action?: (actions: PopoverActions) => void;
anchorEl?: HTMLElement | ((element: HTMLElement) => HTMLElement);
anchorEl?: null | HTMLElement | ((element: HTMLElement) => HTMLElement);
anchorOrigin?: PopoverOrigin;
anchorPosition?: PopoverPosition;
anchorReference?: PopoverReference;
Expand Down

0 comments on commit 9ae90f3

Please sign in to comment.