facebook / facebook/lexical

Bug: Is there any way to caret at the beginning of the Inline DecoratorNode when I use the up and down arrow keys

Open
#5,312 0 comments 0 reactions 0 assignees View on GitHub
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:
1

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

2

## The expected behavior
The caret is at the beginning of the inline poll node.
3

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.