facebook / facebook/lexical

Bug: not possible to select a paragraph with double click if it's followed by image

Open
#4,694 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.11.1

## Steps To Reproduce
https://playground.lexical.dev/

Video:
https://github.com/facebook/lexical/assets/2890580/ff844071-99ec-4c74-afa7-df2bc489952d

## The current behavior
After double click selection is moved to the beginning of paragraph

## The expected behavior
Paragraph text must be selected after double click

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the double-click selection case in the Lexical playground linked in the issue, with a paragraph followed by an image. Trace the editor's selection handling for this interaction and verify the fix by confirming that the paragraph text remains selected rather than moving to its beginning.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.