mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 19:29:02 +08:00
fix blur event in menus, fix #348
This commit is contained in:
parent
2189151903
commit
e9d71efe16
@ -20,7 +20,7 @@ class Menu {
|
||||
this.options.editor.on('focus', ({ view }) => {
|
||||
this.update(view)
|
||||
})
|
||||
this.options.editor.on('blur', event => {
|
||||
this.options.editor.on('blur', ({ event }) => {
|
||||
this.hide(event)
|
||||
})
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ class Menu {
|
||||
this.options.editor.on('focus', ({ view }) => {
|
||||
this.update(view)
|
||||
})
|
||||
this.options.editor.on('blur', event => {
|
||||
this.options.editor.on('blur', ({ event }) => {
|
||||
this.hide(event)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user