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: Pressing the left arrow key moves the cursor to the last cell of the table when there is an immutable element(contenteditable=false) immediately following the table. #6870

Open
3mukulranjan opened this issue Nov 26, 2024 · 1 comment · May be fixed by #6875
Assignees
Labels
decorators selection tables Relates to Lexical Tables

Comments

@3mukulranjan
Copy link

3mukulranjan commented Nov 26, 2024

Lexical version:0.20

Steps To Reproduce

  1. Navigate to https://playground.lexical.dev/
  2. Select "Insert" and choose a 5 by 5 table.
  3. Click just below the table, then select "Insert" again and choose "Equation." After naming the equation, insert it.
  4. Notice that the cursor is placed just after the inserted equation. Press the left arrow key or Shift+Left arrow key and observe that the cursor moves to the last cell of the table.

The current behavior

After pressing the left/Shift left, cursor moved to last cell of the table

The expected behavior

Pressing Shift+Left key should either select the equation or move the cursor to the beginning of the equation text.

Issue-record.mp4
@etrepum etrepum added the tables Relates to Lexical Tables label Nov 26, 2024
@etrepum
Copy link
Collaborator

etrepum commented Nov 26, 2024

I replaced your zip file recording with the mp4 itself. It's better to have these things inline, it's just more work for everyone to download a zip when they could've viewed the file directly from the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
decorators selection tables Relates to Lexical Tables
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants