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

IME text cannot be deleted with backspace after pressing enter in iOS Safari #3752

Open
ezingme opened this issue Nov 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ezingme
Copy link

ezingme commented Nov 11, 2024

Description

In iOS Safari, after entering IME text and pressing enter, the text cannot be deleted using the backspace key.

Reproduction URL

https://platejs.org/

Reproduction steps

  1. Go to https://platejs.org/ in iOS Safari
  2. Double-tap the word "Playground" in the editor to select it
  3. Enable an IME keyboard, type any text, and accept it using the enter key
  4. Try using the backspace key to delete the entered text
  5. The page crashes with two errors in the console; see below

Cannot reproduce on https://slatejs.org/.

Sometimes, instead of crashing, the editor silently fails to delete the inserted text.

Plate version

39.3.7

Slate React version

0.110.1

Screenshots

No response

Logs

Error: Cannot resolve a Slate point from DOM point: [object HTMLDivElement],0
        toSlatePoint (b7bbbec9-c6a800ffbca1bf25.js:1:13367)
	toSlateRange (b7bbbec9-c6a800ffbca1bf25.js:1:14670)
        [...]
NotFoundError: The object can not be found here.
        removeChild
        [....]

Browsers

iOS Safari

@ezingme ezingme added the bug Something isn't working label Nov 11, 2024
@12joan 12joan changed the title Chinese text cannot be deleted with backspace after pressing enter in iOS Safari IME text cannot be deleted with backspace after pressing enter in iOS Safari Nov 11, 2024
@abhi-bc
Copy link
Collaborator

abhi-bc commented Nov 12, 2024

Wonder if it is related to this? #3584

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants