Remove not yet used ref

This commit is contained in:
jos 2017-07-13 19:49:45 +02:00
parent f786940d8d
commit 5b1426eb7c
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,6 @@ export default class Menu extends Component {
: 'bottom' : 'bottom'
// TODO: create a non-visible button to set the focus to the menu // TODO: create a non-visible button to set the focus to the menu
// TODO: implement (customizable) quick keys
const className = 'jsoneditor-actionmenu ' + const className = 'jsoneditor-actionmenu ' +
((orientation === 'top') ? 'jsoneditor-actionmenu-top' : 'jsoneditor-actionmenu-bottom') ((orientation === 'top') ? 'jsoneditor-actionmenu-top' : 'jsoneditor-actionmenu-bottom')
@ -40,7 +39,6 @@ export default class Menu extends Component {
return h('div', { return h('div', {
className: className, className: className,
'data-menu': 'true', 'data-menu': 'true',
ref: '',
}, },
this.props.items.map(this.renderMenuItem) this.props.items.map(this.renderMenuItem)
) )
@ -152,6 +150,8 @@ export default class Menu extends Component {
componentDidMount () { componentDidMount () {
this.updateRequestCloseListener() this.updateRequestCloseListener()
} }
componentDidUpdate () { componentDidUpdate () {