Bug: Range selection selects root node while trying to click on the Horizontal Rule
- Dominant language
- TypeScript
- Stars
- 23.9k
- Forks
- 2.2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 55
Description
Lexical version:
## Steps To Reproduce
1. in Lexical playground, insert a `Horizontal Rule` via the insert button
2. click on the left part of the HR in editor but slightly higher, like shown

3. check the debugging panel, selection: range, `root` is selected

4. now press `backspace` will move focus to the first node
Link to code example: N/A
Reproducible on the official playground
## The current behavior
Root is selected
## The expected behavior
Root should not be selected
## Impact of fix
Contributor guide
Assessment
This issue has not been assessed yet.