Merge pull request #376 from murata0705/master

Handle composition state in MenuBubble
This commit is contained in:
Philipp Kühn 2019-07-10 09:23:44 +02:00 committed by GitHub
commit db34efbc56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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