facebook / facebook/lexical

Bug: (Firefox) Caret disappears after dragging a block

Open
#5,933 3 comments 1 reaction 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: I am trying the playground as it is deployed right now, can't see a version indicated there but I'm assuming it deploys from this repository so I guess it should be the latest?

## Steps To Reproduce

1. On Firefox (macOS intel, latest, 125.0.1 (64-bit) open https://playground.lexical.dev
2. Move one of the text blocks with drag and drop
3. Try to edit some text

## The current behavior

The caret disappears after the drag and drop action, but selection and editing is still possible as if it were there

## The expected behavior

The caret should not disappear after dragging a block. It works fine for me in Safari and Chrome.

https://github.com/facebook/lexical/assets/26603037/536fb693-563c-478d-b4e4-bfe7b2b9e0d5

Contributor guide

Open the contributing guide

Research direction

Begin by reproducing the issue in the deployed playground.lexical.dev on Firefox: drag a text block, then edit it and compare the caret with Chrome or Safari. Trace the playground's drag-and-drop and selection behavior, and consider the issue done when the caret remains visible after dragging while selection and editing still work.

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
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.