ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
27.52k stars 2.29k forks source link

[Bug]: ListKeyMap extension does not delete content if selection includes a non-list node #5784

Open Minniehajj opened 2 weeks ago

Minniehajj commented 2 weeks ago

Affected Packages

core, extension-list-keymap

Version(s)

2.9.0

Bug Description

The List Keymap extension does NOT delete selected content if the selection includes elements that are NOT part of the list node See codesandbox and video

https://github.com/user-attachments/assets/0d30f31f-bece-4648-83a2-598cdd54083b

Browser Used

Chrome

Code Example URL

https://codesandbox.io/p/sandbox/holy-haze-6s2fk6

Expected Behavior

The selected test is deleted and the element below the list is not set into the list

Additional Context (Optional)

No response

Dependency Updates

ashish07-07 commented 2 weeks ago

I guess its working fine when i delete paragraph and list together both got deleted , Nothing was left