Darginec05 / Yoopta-Editor

Build Notion-like, Craft-like, Coda-like, Medium-like editors with Yoopta
https://yoopta.dev/
MIT License
1.46k stars 112 forks source link

[BUG] Bulleted list retains “-” symbol after undoing actions instead of an expected empty block #375

Open Artmadiar opened 3 weeks ago

Artmadiar commented 3 weeks ago

Has this bug been raised before?

Description

After undoing actions in a bulleted list, the list item retains the “-” symbol, rather than leaving a fully empty block as expected.

Steps to Reproduce:

1.  Start a new bulleted list and type any text in the first item.
2.  Perform a few actions, such as typing and deleting content in the list item.
3.  Press “Undo” (usually Ctrl+Z or Cmd+Z) to revert the actions until the list item should be empty.

Expected Behavior: The list item should be completely empty with no characters or symbols.

Actual Behavior: The “-” symbol remains in the list item, creating an unexpected, partially-empty block.

Screenshots

No response

Do you want to work on this issue?

No