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: Chrome can't set Cursor in Front of LexicalDecoratorNode #6916

Open
danielberndt opened this issue Dec 6, 2024 · 0 comments
Open

Bug: Chrome can't set Cursor in Front of LexicalDecoratorNode #6916

danielberndt opened this issue Dec 6, 2024 · 0 comments

Comments

@danielberndt
Copy link

Lexical version: Playground

Steps To Reproduce

  1. Import this Lexcical State
{"editorState":{"root":{"children":[{"children":[{"equation":"a","inline":true,"type":"equation","version":1},{"type":"linebreak","version":1},{"equation":"b","inline":true,"type":"equation","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}},"lastSaved":1733474696407,"source":"Playground","version":"0.21.0"}
  1. Try to move the cursor in front of the second line
  2. On Chrome it will jump to the end of the first line
  3. This makes it impossible to add something in front of the second line

The current behavior

On Chrome:

Screen.Recording.2024-12-06.at.09.49.33.mov

The expected behavior

On Firefox it works (despite the cursor being invisible)

Screen.Recording.2024-12-06.at.09.50.45.mov

Impact

We're using LexicalDecoratorNode for @mentions and other types of references within our app. Not being able to set the cursor in front of those makes the experience a bit cumbersome.

@danielberndt danielberndt changed the title Bug: Chrome can't set cursor in Front of LexicalDecoratorNode Bug: Chrome can't set Cursor in Front of LexicalDecoratorNode Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants