Skip to content

Commit

Permalink
fix: remove composition check for floating menu (#2137)
Browse files Browse the repository at this point in the history
remove composing from floating menu
  • Loading branch information
dkrym authored Nov 10, 2021
1 parent 893f870 commit d0d0696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/extension-floating-menu/src/floating-menu-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d0d0696

Please sign in to comment.