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

Weird indentation after deleting todo list item #44

Closed
uncenter opened this issue Jun 23, 2023 · 1 comment
Closed

Weird indentation after deleting todo list item #44

uncenter opened this issue Jun 23, 2023 · 1 comment

Comments

@uncenter
Copy link
Contributor

If you have a task list and delete any task that isn't the first, you are stuck in a weird indentation state. Pressing delete returns you to the previous line, so the user has to to press enter (while on the line with the weird indentation) to remove the indentation. Pressing enter actually seems like the proper way to delete an empty item without the indentation.

Screen.Recording.2023-06-23.at.7.49.40.PM.mov

There is also some other weird behavior with the indentation; if you have a line below the todo list (as I did to showcase the different indentation) while the strange indentation is happening, pressing delete while on that line below creates a new task. See 0:03 to 0:05 above.

@umeshjain1999
Copy link
Contributor

umeshjain1999 commented Jun 24, 2023

Hey @uncenter checkout this issue #31 state similar problem. Seems like this is how Tiptap has designed this behaviour to delete a line from bulletlist, tasklist, etc https://tiptap.dev/api/nodes/task-item#usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants