tiptap: Backspace on parent items in nested lists does not work
What’s the bug you are facing?
TipTap/Prosemirror behaves a bit UX-unfriendly out of the box when one attempts to delete foo or bar alone in a nested bullet structure like
- foo
- bar
- baz
- bar
How can we reproduce the bug on our side?
- Go to https://tiptap.dev/ or https://prosemirror.net/
- create the above nested structure
- set the cursor at the beginning of
barand press backspace.foodisappears, but nothing else happens
Can you provide a CodeSandbox?
No response
What did you expect to happen?
Lines joining, e.g. behavior similar to https://h9xxi.csb.app/, https://remirror.io/, or https://app.bangle.io/
Anything to add? (optional)
Maybe related https://discuss.prosemirror.net/t/joinbackward-behavior/3296/8
Did you update your dependencies?
- Yes, I’ve updated my dependencies to use the latest version of all packages.
Are you sponsoring us?
- Yes, I’m a sponsor. 💖
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 8
- Comments: 23 (18 by maintainers)
I’ll look into that! Moved this ticket into the 2.0.0 Milestone too as I think the editor behavior should be fixed when we go stable.
Maybe I’ll strip out those extra keymaps into an extra package then. This way the vanilla lists will behave like Prosemirror but we can work on fixing them on an additional level.
I’ll still try to get in touch with Marjin regarding this.
I too would like to know if it’s going to land in 2.1.0. It’s something our customers have been wanting fixed for a while now, and it would be great to be able to update them on when that’s likely to happen.
Fixing this issue, along with https://github.com/ueberdosis/tiptap/issues/3128, and I don’t want to push it 😅, but also with https://github.com/ueberdosis/tiptap/pull/3192, will eliminate sooooooo many paint points for us and our users, that you have no idea.
I’m biased, of course, but I believe that fixing all those 3 issues will make the editor much more stable and provide a less painful writing experience. Here’s hoping you can prioritize these 🤞
I’m sure it’s fine…
😁
I’ve found the problems with lists seem to be more extensive than I’d previously believed: https://github.com/ueberdosis/tiptap/issues/3128#issuecomment-1560221547