ianstormtaylor / slate

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

Selecting behaviour on check list item #1920

Closed laurensiusadi closed 6 years ago

laurensiusadi commented 6 years ago

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

Bug

What's the current behavior?

https://www.slatejs.org/#/check-lists.

I want to select all check-lists, I can only select one.

2018-06-18_14-42-50

What's the expected behavior?

Select between list item like normal bullet list or numbered list

2018-06-20_12-21-57

justinweiss commented 6 years ago

I think this happens because, in the demo, the enclosing div is marked contenteditable=false. If only the checkbox span is marked contenteditable=false, I think this will work correctly -- at least, it did when I was messing with it in Web Inspector!