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]: Deleting at end of bullet list causes a new bullet point to spawn #5137

Open
1 task done
EricHasegawa opened this issue May 12, 2024 · 2 comments
Open
1 task done
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

@EricHasegawa
Copy link
Contributor

Affected Packages

StarterKit, BulletList, ListItem

Version(s)

latest

Bug Description

Create a bullet list as normal, enter the first bullet point. Press enter -> new empty listItem spawns below. Press enter, second listItem is deleted, cursor goes to start of line, press delete -> second bullet point comes back,

Reproduction can be seen here

Browser Used

Chrome

Code Example URL

https://tiptap.dev/docs/editor/examples/default

Expected Behavior

I would expect pressing delete returns my cursor to the first listItem, rather than creating a new listItem; intuitively, its quite odd that pressing delete actually creates the new bullet point

Additional Context (Optional)

Video of a reproduction with context is here

Dependency Updates

  • Yes, I've updated all my dependencies.
@EricHasegawa EricHasegawa 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 May 12, 2024
@levonbrunson
Copy link

levonbrunson commented May 20, 2024

I resolved this by adding ListKeymap to the extensions, not sure why it fixes the issue.

Edit:
Someone found a solution in the PR at the end of the thread in this issue -> #4395

@Nantris
Copy link
Contributor

Nantris commented May 21, 2024

To the TipTap team: The "default editor" should probably include the ListKeymap extension, no? More broadly, this seems like a recurring point of confusion which, if clarified, could reduce the issue count and load on the maintainers.

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
Status: Triage open
Development

No branches or pull requests

3 participants