Slate: Select All, Backspace doesn't work

Created on 18 Jul 2018  路  2Comments  路  Source: ianstormtaylor/slate

Do you want to request a _feature_ or report a _bug_?

bug

What's the current behavior?

If your selection starts at the start of the editor and is expanded, and you press Control Backspace
(as in you're doing Control A, Backspace too quickly and don't let go of Control quickly enough) it won't remove anything and instead just collapses the focus left. This does not match regular text field/textarea behaviour.
slate

What's the expected behavior?

Same behaviour as <textarea>/<input/> where it removes the selection anyway.

Most helpful comment

There's still a bug regarding this - if the first node in the editor is a list then select all + backspace will not delete the list wrapper (ul/ol) which makes it impossible to erase the list wrapper.

All 2 comments

The control-backspace has a bug, and it will be fixed in https://github.com/ianstormtaylor/slate/pull/1888

There's still a bug regarding this - if the first node in the editor is a list then select all + backspace will not delete the list wrapper (ul/ol) which makes it impossible to erase the list wrapper.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

markolofsen picture markolofsen  路  3Comments

yalu picture yalu  路  3Comments

chrpeter picture chrpeter  路  3Comments

YurkaninRyan picture YurkaninRyan  路  3Comments

ianstormtaylor picture ianstormtaylor  路  3Comments