fix: remove composition check for floating menu (#2137)

remove composing from floating menu
This commit is contained in:
dkrym
2021-11-11 10:09:22 +11:00
committed by GitHub
parent 893f87047d
commit d0d0696266

View File

@@ -119,12 +119,12 @@ export class FloatingMenuView {
}
update(view: EditorView, oldState?: EditorState) {
const { state, composing } = view
const { state } = view
const { doc, selection } = state
const { from, to } = selection
const isSame = oldState && oldState.doc.eq(doc) && oldState.selection.eq(selection)
if (composing || isSame) {
if (isSame) {
return
}