Skip to content

Undo after deleting content on Android can sporadically trick ProseMirror into thinking selection is collapsed when it's not #1393

@Nantris

Description

@Nantris

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:

  • It may need to be nested list content but I don't believe that to be the case right now.
  • It may be necessary for the $anchor to be before the $head

Android version: 13
Android keyboard: GBoard
Browser: Chrome

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions