Skip to content

Commit

Permalink
fix: restore Menu#anchorEl documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Mar 25, 2020
1 parent d8baa07 commit 38645c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/material-ui/src/Menu/Menu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface MenuProps
extends StandardProps<PopoverProps & Partial<TransitionHandlerProps>, MenuClassKey> {
/**
* The DOM element used to set the position of the menu.
* @document
*/
anchorEl?: PopoverProps['anchorEl'];
/**
Expand Down
7 changes: 7 additions & 0 deletions packages/material-ui/src/Menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ Menu.propTypes = {
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit the d.ts file and run "yarn proptypes" |
// ----------------------------------------------------------------------
/**
* The DOM element used to set the position of the menu.
*/
anchorEl: PropTypes.oneOfType([
PropTypes.func,
PropTypes.instanceOf(typeof Element === 'undefined' ? Object : Element),
]),
/**
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
* children are not focusable. If you set this prop to `false` focus will be placed
Expand Down

0 comments on commit 38645c2

Please sign in to comment.