Bug: Is there any way to caret at the beginning of the Inline DecoratorNode when I use the up and down arrow keys
- Dominant language
- TypeScript
- Stars
- 23.9k
- Forks
- 2.2k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 61
Description
Lexical version: 0.12.4
## Steps To Reproduce
1. Add an inline poll node:
2. Use the up and down arrow keys to move up and down
Link to code example: using the [Lexical Playground](https://playground.lexical.dev/) to reproduce the problem
## The current behavior
The caret is at the end of the inline poll node
https://github.com/facebook/lexical/assets/2778871/e4f76987-33c0-4bbb-88e9-15e81de4f363
## The expected behavior
The caret is at the beginning of the inline poll node.
Contributor guide
Research direction
Start with the Lexical Playground reproduction and inspect how the inline poll DecoratorNode handles up and down arrow-key movement. Trace the caret placement around the inline node; done means moving vertically places the caret at the beginning of the inline poll node as shown in the expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100