Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

double the input content when in chrome using Microsoft ime lost focus #5652

Closed
tsxuehu opened this issue May 18, 2024 · 0 comments
Closed

Comments

@tsxuehu
Copy link

tsxuehu commented May 18, 2024

Description
on windows,in chrome, using microsoft ime,when lost focus,the input content will be doubled

Recording
https://github.com/ianstormtaylor/slate/assets/41042044/fc3040f4-32c8-4203-87d8-ee261aa5affa

Sandbox
https://www.slatejs.org/examples/richtext

Steps

  1. on windows,using chrome open: https://www.slatejs.org/examples/richtext
  2. using Microsoft ime type chars
  3. click page any where
  4. see the content doubled

Expectation
the input content not doubled

Environment

  • Slate Version: 0.102.0
  • Operating System: win11
  • Browser: Chrome

Context
when lost focus while composition,chrome will produce two beforeinput event after compositionend event。

  1. beforeinput deleteContentBackward
  2. beforeinput insertText
    the compositionend and beforeinput(insertText) event make the content doubled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant