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