mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-16 03:39:00 +08:00
Add composing handler to Menu class
This commit is contained in:
parent
8aa39d1393
commit
a7f4ee7dab
@ -86,6 +86,10 @@ class Menu {
|
|||||||
update(view, lastState) {
|
update(view, lastState) {
|
||||||
const { state } = view
|
const { state } = view
|
||||||
|
|
||||||
|
if (view.composing) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Don't do anything if the document/selection didn't change
|
// Don't do anything if the document/selection didn't change
|
||||||
if (lastState && lastState.doc.eq(state.doc) && lastState.selection.eq(state.selection)) {
|
if (lastState && lastState.doc.eq(state.doc) && lastState.selection.eq(state.selection)) {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user