ianstormtaylor / slate

A completely customizable framework for building rich text editors. (Currently in beta.)
http://slatejs.org
MIT License
29.89k stars 3.25k forks source link

Backspace on list formatting does not clear the list-item. #3365

Open sfroestl opened 4 years ago

sfroestl commented 4 years ago

Do you want to request a feature or report a bug?

Bug

What's the current behavior?

Backspace on list formatting does not clear the list-item.

https://www.slatejs.org/examples/richtext

Chrome 79.0.3945.88 macOs Catalina 10.15.1 Slate 0.57

What's the expected behavior?

Clear formatting, don't leave a list-item in Node[]

Thanks!!

Dundercover commented 4 years ago

FWIW could only reproduce the bug if there is an empty block before the list.