facebook / facebook/lexical

Bug: Infinite selection update in LexicalLinkPlugin on Playground

Open
#5,172 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: v0.12.2

## Steps To Reproduce

1. Add link to the document on https://playground.lexical.dev/
2. Update the selection as in the attached video by slowly moving the mouse cursor down

https://github.com/facebook/lexical/assets/10223953/bb28a403-fb82-4f6b-a9b9-68d228ff5bd0

## The current behavior
Selection is changed infinitely to the whole document and back to what was initially selected

## The expected behavior
Selection stays fixed

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the Lexical Playground at https://playground.lexical.dev/ using LexicalLinkPlugin and the reported mouse movement sequence. Trace the selection updates that occur after adding a link, then verify that slowly moving the cursor no longer alternates the selection between the whole document and the original selection.

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.