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) {
|
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