fix: remove composition check for floating menu (#2137)
remove composing from floating menu
This commit is contained in:
@@ -119,12 +119,12 @@ export class FloatingMenuView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update(view: EditorView, oldState?: EditorState) {
|
update(view: EditorView, oldState?: EditorState) {
|
||||||
const { state, composing } = view
|
const { state } = view
|
||||||
const { doc, selection } = state
|
const { doc, selection } = state
|
||||||
const { from, to } = selection
|
const { from, to } = selection
|
||||||
const isSame = oldState && oldState.doc.eq(doc) && oldState.selection.eq(selection)
|
const isSame = oldState && oldState.doc.eq(doc) && oldState.selection.eq(selection)
|
||||||
|
|
||||||
if (composing || isSame) {
|
if (isSame) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user