Skip to content

Commit

Permalink
Fix composing state
Browse files Browse the repository at this point in the history
  • Loading branch information
ulion committed May 22, 2021
1 parent 3e55e75 commit c2fefd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/slate-react/src/components/editable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ export const Editable = (props: EditableProps) => {
// after that, we can only rely on other events to set correct isComposing state.
if (event.isComposing === false) {
state.isComposing = false
} else if (event.isComposing === true || event.inputType === 'insertCompositionText' && event.data) {
state.isComposing = true
}
if (
!readOnly &&
Expand Down

0 comments on commit c2fefd2

Please sign in to comment.