facebook / lexical

Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
https://lexical.dev
MIT License
17.5k stars 1.45k forks source link

Bug: Horizontal Rule node or Page break node selection problem #5738

Closed shield2018 closed 2 weeks ago

shield2018 commented 1 month ago

Lexical version: 0.14.2

Steps To Reproduce

  1. insert a Horizontal Rule or Page break
  2. delete last paragraph node
  3. click left part of editor, the position of the cursor is incorrect.but click right part of editor, the position of the cursor is correct.
  4. When the cursor is incorrect, click backspace key, display error.

example:

https://github.com/facebook/lexical/assets/5371329/247c571e-6769-465f-9eac-66b455632de9