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]: backspace with empty list item in safari with software keyboard causing invalid behavior #5753

Open
1 task done
cchyung opened this issue Oct 23, 2024 · 0 comments
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug

Comments

@cchyung
Copy link

cchyung commented Oct 23, 2024

Affected Packages

core, extension-list-item, extension-list-keymap

Version(s)

2.9.0

Bug Description

This issue occurs when using safari iOS with the standard software keyboard. When you have the cursor at the front of the paragraph of a list item and try to press backspace, it instead removes the list item and moves the paragraph into the list item above as a sibling.

This is a video testing on TipTap's own website for list-keymap which should combine the two bullets into one on the first backspace click:

list.backspace.ios.software.keyboard.mp4

After further investigation, it appears that something is intercepting the backspace command and setting preventDefault to true before the event even gets to TipTap.

This is happening on iOS 17.5 and iOS 18 via the simulator.

Weirdly enough, the intended behavior occurs when I open the site on iOS 18.1 on safari with software keyboard.

Browser Used

Safari

Code Example URL

No response

Expected Behavior

Backspace event is getting preventDefault: true when hitting backspace at the front of a list item. Causing weird irregular behavior with list-keymap.

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.
@cchyung cchyung added Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug
Projects
None yet
Development

No branches or pull requests

1 participant