Undo after deleting content on Android can sporadically trick ProseMirror into thinking selection is collapsed when it's not #1393
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the image below you can see that the selection is believed to be collapsed on the ProseMirror side, but the UI and the
window-selection both properly reflect the expanded selection. Please ignore the text in the images, it's irrelevant.To reproduce this, delete some content in an expanded selection on Android in Chrome, then undo. Repeat these steps until the issue occurs. Sometimes you may need to re-select the content and try again for this to trigger.
Unknowns:
Android version: 13
Android keyboard: GBoard
Browser: Chrome
This may be because after undo Android seems to set the selection's
startContainerto the parentpnode, rather than inside of it in the#textnode.Friendly bump.