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

Bug: Android backspace removes a character after the caret unless the at the end of a block #4374

Closed
Nantris opened this issue Apr 20, 2023 · 2 comments
Labels
android-bug core Reconciler, DOM, Selection, Node, Events, Composition

Comments

@Nantris
Copy link

Nantris commented Apr 20, 2023

Lexical version: https://playground.lexical.dev (0.10.0?)

Steps To Reproduce

  1. Open Playground with Android and gBoard
  2. Put caret anywhere besides the end of a block and use backspace
  3. You will see unexpected characters be removed

Link to code example: https://playground.lexical.dev

The current behavior

Characters before and after caret are removed

The expected behavior

Only the character before caret is removed

Additional context

Can't replicate this in an emulator using my keyboard's backspace button but it occurs if I use the backspace key on the emulator's keyboard.

@zurfyx zurfyx added android-bug core Reconciler, DOM, Selection, Node, Events, Composition labels Apr 24, 2023
@ScottKitchell
Copy link

I'm seeing the the same thing on an Android, on both Gboard and MS SwiftKey.

It seems to be doing a double delete.

If you backspace one character, it will remove the previous character and the next. If you select a 5 letter word and then backspace it will remove the word and the next 5 characters.

@thegreatercurve
Copy link
Contributor

I investigated this as part of another issue. It's a bug within Chromium itself. I logged a bug report with them here: https://bugs.chromium.org/p/chromium/issues/detail?id=1403455#c1

Closing this as this should be tracked via Chromium.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android-bug core Reconciler, DOM, Selection, Node, Events, Composition
Projects
None yet
Development

No branches or pull requests

4 participants