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

Editor will crash after input Chinese in FireFox #4847

Open
M162 opened this issue Feb 21, 2022 · 5 comments · May be fixed by #5407
Open

Editor will crash after input Chinese in FireFox #4847

M162 opened this issue Feb 21, 2022 · 5 comments · May be fixed by #5407

Comments

@M162
Copy link

M162 commented Feb 21, 2022

Description

Editor will crash after input Chinese and then input something more in FireFox.

Recording

2022-02-21.10.54.09.mov

Steps

reproduce:

  1. Input something in Chinese like 你好(ni hao) in https://www.slatejs.org/examples/richtext in FireFox.
  2. Then what user input will be repeated.
  3. Input something more in the end of the text in editor.
  4. Then editor will crash

Environment

  • Browser: FireFox
@M162
Copy link
Author

M162 commented Mar 30, 2022

Any update on this issue?

<p data-slate-node="element" class="StyledElement___StyledDiv-sc-2e063k-0 gxtnvY slate-p">
  <span data-slate-node="text">
    <span data-slate-leaf="true">
    你好
      <span data-slate-string="true">
      你好
      </span>
    </span>
  </span>
</p>

This issue is very similar with #4060 #4142 .

@dreammaker7
Copy link

dreammaker7 commented Apr 21, 2022

We also suffer from it and want to know the latest developments.

@sennpang
Copy link
Contributor

#4060 (comment)

@dreammaker7
Copy link

This problem can be temporarily solved by setting a forced layout.
https://www.slatejs.org/examples/forced-layout

@cantin
Copy link

cantin commented Oct 11, 2022

The issue seemed to be fixed in the latest version.

@zbeyens zbeyens linked a pull request Apr 27, 2023 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants