<!-- Please provide a clear and concise description of what the bug is. Include screenshots if needed. Please test using the latest version of the relevant Lexical packages to make sure your issue has not already been fixed. --> Lexical version: 0.49 latest ## Steps To Reproduce 1. Insert two CardNode (shadow root ElementNode with slots) one after the other 2. Place the cursor between the two cards 3. Press <kbd>Backspace</kbd> <!-- Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than Lexical. Issues without reproduction steps or code examples may be closed as not actionable. --> [Link to code example](https://playground.lexical.dev/#doc=H4sIAAAAAAAAE-1TzWoCMRB-lfLRY5AIatc8QM_CHouHsBk1EJNlMitdZN9dsts_W3rQW6GnMBm-vxnmDHJeEtdihWDO4JSkvM3BB8cUYV5-L7YKzjM14lOEiV0ICrvERyswgIKPjqLAaAXpW4JBa9nu2bYHKJyI8wicKwi9yvMbUk9lLX0oEAy3yzSW3TeFxxyS5BJNvAT6kdGRWB9Gkt2nkWNyhS-WnwCF_G5q8ggzsT0UcnzIj62v8ndEuGtSw6D-t_WHtnW70HifV2YHhWCz1PZEDmb-VC3XlV4tFytdKeTUcVNwm2D7PacuXk0aerZYzzSGC-wjAyAIBAAA) <!-- Please provide a CodeSandbox (https://codesandbox.io/s/new) or (https://stackblitz.com/github/facebook/lexical/tree/main/examples/react-plain-text?file=src%2FApp.tsx&terminalHeight=0&ctl=1&showSidebar=0&devtoolsheight=0&view=preview), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve. --> ## The current behavior Cards near the block cursor cannot be deleted https://github.com/user-attachments/assets/8b8ad914-580d-454f-aaab-2fb6ddcd6085 ## The expected behavior Pressing Backspace with the block cursor deletes the cards before or after it ## Impact of fix In situations where a block cursor is possible between or near an ElementNode, deletion should work the same way as with a DecoratorNode
Lexical version: 0.49 latest
Steps To Reproduce
Link to code example
The current behavior
Cards near the block cursor cannot be deleted
block-cursor-near-cards.mov
The expected behavior
Pressing Backspace with the block cursor deletes the cards before or after it
Impact of fix
In situations where a block cursor is possible between or near an ElementNode, deletion should work the same way as with a DecoratorNode