Remove not yet used ref
This commit is contained in:
parent
f786940d8d
commit
5b1426eb7c
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in New Issue