In the case when we decorate a node with a widget-decoration and then start a selection by keyboard from last node position, it behaves correct in the forward selection but weird when you select back.
This is what the DOM looks like:
Prosemirror considers the line break (widget-decoration) to be an ignorable node and resets the selection inside
How can I prevent the resetting of the selection during reverse selection? Or maybe the new selection is just wrong?