diff --git a/docs/src/app/components/pages/components/icon-menus.jsx b/docs/src/app/components/pages/components/icon-menus.jsx index 9deb9ccdfe8252..f9287474dc99bf 100644 --- a/docs/src/app/components/pages/components/icon-menus.jsx +++ b/docs/src/app/components/pages/components/icon-menus.jsx @@ -73,7 +73,7 @@ export default class IconMenus extends React.Component { { name: 'open', type: 'bool', - header: 'default: true', + header: 'default: null', desc: 'Controls whether the IconMenu is opened or not.', }, { @@ -145,7 +145,7 @@ export default class IconMenus extends React.Component { 'requested to be changed. The provided open argument determines whether the ' + 'menu is requested to be opened or closed. Also, the reason argument states ' + 'why the menu got closed or opened. It can be \'keyboard\', \'iconTap\' for ' + - 'open action and \'enter\', \'esc\', \'itemTap\', \'clickAway\' for close ' + + 'open action and \'enter\', \'escape\', \'itemTap\', \'clickAway\' for close ' + 'action.', }, { @@ -309,7 +309,7 @@ export default class IconMenus extends React.Component {
console.log(reason) || this.setState({isIconMenuOpened: open})} + onRequestChange={open => this.setState({isIconMenuOpened: open})} iconButtonElement={iconButtonElement}> } /> } /> diff --git a/src/menus/icon-menu.jsx b/src/menus/icon-menu.jsx index ce42a424c2bf96..8b388ff3ebeb50 100644 --- a/src/menus/icon-menu.jsx +++ b/src/menus/icon-menu.jsx @@ -256,7 +256,7 @@ const IconMenu = React.createClass({ }, _handleMenuEscKeyDown(event) { - this.close('esc', event); + this.close('escape', event); }, });