bug
In http://slatejs.org/#/rich-text:
Using Mac, when ctrl+backspace at beginning of line, it will throw an error in "http://slatejs.org/#/rich-text"
Do nothing when n===0
Strange, I cannot reproduce it now. I did that a few minutes ago but I cannot reproduce the problem at this moment.
My mistake, it is ctrl+delete not cmd+delete;
I am working on that.
Fixed in #1888
@zhujinxuan I think this is the exact same bug I ran across when backspacing in Android but it's just failing to catch a different type of backspace.
https://github.com/ianstormtaylor/slate/pull/1935#issuecomment-400079031
@thesunny Can you have a try on whether https://github.com/ianstormtaylor/slate/pull/1888 fixes the bug in Android?
I'll check this when I get back from vacation. I don't have a virtual Android set up on my laptop and all the stuff I'm travelling with are iOS devices.
Close this PR because it will be fixed in #1888
Most helpful comment
Fixed in #1888