Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Safari visual selection bug with custom nodes #1462

Open
HalfdanJ opened this issue May 9, 2024 · 0 comments
Open

Bug: Safari visual selection bug with custom nodes #1462

HalfdanJ opened this issue May 9, 2024 · 0 comments

Comments

@HalfdanJ
Copy link

HalfdanJ commented May 9, 2024

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 ?

@HalfdanJ HalfdanJ changed the title Safari visual selection bug with custom nodes Bug: Safari visual selection bug with custom nodes May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant