Skip to content

Bug: Safari visual selection bug with custom nodes #1462

@HalfdanJ

Description

@HalfdanJ

When working with custom nodes, there is a bug in safari where too much text is shown as selected. It happens when a selection range starts at a custom node, when that happens the selection is shown as expanded to the beginning of the paragraph.

Steps to reproduce

  • Open the dino examples
  • Make a selection of the text that spans one of the dinos
  • Observe that more text then whats actually is selected is highlighted.

Safari version: 17.4.1

This works fine in chrome.

Kapture.2024-05-09.at.14.16.36.mp4

Note that even though the selection is shown as starting at the beginning of the paragraph, its not actually selected.

I've noticed that this bug is also visible in apps in production, for example Linear:

Kapture.2024-05-09.at.14.20.35.mp4

Maybe related to #1165 ?

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