[Bug]: backspace with empty list item in safari with software keyboard causing invalid behavior #5753
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
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
totrue
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 withlist-keymap
.Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: