fix blur event in menus, fix #348

This commit is contained in:
Philipp Kühn 2019-06-11 07:21:41 +02:00
parent 2189151903
commit e9d71efe16
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class Menu {
this.options.editor.on('focus', ({ view }) => { this.options.editor.on('focus', ({ view }) => {
this.update(view) this.update(view)
}) })
this.options.editor.on('blur', event => { this.options.editor.on('blur', ({ event }) => {
this.hide(event) this.hide(event)
}) })
} }

View File

@ -73,7 +73,7 @@ class Menu {
this.options.editor.on('focus', ({ view }) => { this.options.editor.on('focus', ({ view }) => {
this.update(view) this.update(view)
}) })
this.options.editor.on('blur', event => { this.options.editor.on('blur', ({ event }) => {
this.hide(event) this.hide(event)
}) })
} }