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: Issue deleting consecutive BlockWithAlignableContents. #5249

Closed
ssoju opened this issue Nov 18, 2023 · 3 comments · Fixed by #5580
Closed

Bug: Issue deleting consecutive BlockWithAlignableContents. #5249

ssoju opened this issue Nov 18, 2023 · 3 comments · Fixed by #5580
Assignees

Comments

@ssoju
Copy link

ssoju commented Nov 18, 2023

Lexical version: 0.12.2

Steps To Reproduce

  1. Insert "Horizontal Rule" consecutively without blank paragraphs
  2. Enter Backspace twice in a row at the cursor position after the last hr.
lexical_issue.mov

Link to code example: https://playground.lexical.dev/

The current behavior

There is an issue where deleting with backspace when BlockWithAlignableContents is contiguous deletes the previous node along with it.

The expected behavior

Only the selected nodes should be deleted.

@disalechinmay
Copy link
Contributor

@ssoju - Which browser are you using? I tried on Chrome Version 119.0.6045.160 (Official Build) (64-bit) and Firefox Version 120.0 (64-bit) both on Windows 11. It seems to work fine on my end.

@ssoju
Copy link
Author

ssoju commented Nov 24, 2023

@disalechinmay My chrome is "119.0.6045.159". It also happens on Canary, which is "121.0.6144.0". Firefox is "120.0".
If you watch the video, it still happens.

2023-11-24.9.12.10.mov

@ivailop7 ivailop7 self-assigned this Jan 19, 2024
@ivailop7
Copy link
Collaborator

This is interesting, will investigate.

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

Successfully merging a pull request may close this issue.

3 participants