Skip to content

Commit

Permalink
Update packages/slate-react/src/components/editable.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
dylans authored Dec 4, 2023
1 parent db7f902 commit 5c058bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slate-react/src/components/editable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ export const Editable = (props: EditableProps) => {
(event: React.CompositionEvent<HTMLDivElement>) => {
if (ReactEditor.hasSelectableTarget(editor, event.target)) {
if (ReactEditor.isComposing(editor)) {
Promise.resolve(()=>{
Promise.resolve(() => {
setIsComposing(false)
IS_COMPOSING.set(editor, false)
})
Expand Down

0 comments on commit 5c058bc

Please sign in to comment.