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: inline DecoratorNodes are over-eagerly deleted #6974

Closed
sedson opened this issue Dec 17, 2024 · 2 comments · Fixed by #7006
Closed

Bug: inline DecoratorNodes are over-eagerly deleted #6974

sedson opened this issue Dec 17, 2024 · 2 comments · Fixed by #7006

Comments

@sedson
Copy link

sedson commented Dec 17, 2024

If an Element terminates with an inline DecortorNode (here using Equation) then deleting the new line below the decorator also deletes the decorator.

Lexical version: v0.21.0+dev.esm

Steps To Reproduce

  1. On line 1, insert an equation - make sure there are no text nodes after it.
  2. Press backspace from selection offset 0 on the line below.
  3. The DecoratorNode will be deleted.
DecoratorNodes.mov
@sankarbiswas07
Copy link

Hi, I was working on this today and noticed that pressing backspace deletes the previous node instead of merging them. Interestingly, in the playground example, it works as expected. I initially thought it might be a bug on my side. Is there something I need to adjust or fix to resolve this?

@etrepum
Copy link
Collaborator

etrepum commented Jan 3, 2025

Wait for the next release or use a nightly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants