mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 19:29:02 +08:00
Merge pull request #376 from murata0705/master
Handle composition state in MenuBubble
This commit is contained in:
commit
db34efbc56
@ -86,6 +86,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)) {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user