joinBackward and nested lists

I’m noticing that on backspace in the following scenario, joinBackward returns true, but doesn’t actually seem to do anything but move the selection:

joinbackward1

When there’s some text in the first list item, joinBackward returns false as you’d expect, and selectNodeBackward fires:

joinbackward2

Are these two scenarios intentionally discrepant? I suspect that the first one is a bug, but wanted to confirm.

Yes, that’s a bug. The patch below should help with it.

1 Like