facebook / facebook/lexical

Bug: Caret disappears after using DraggableBlockPlugin in playground - in Firefox specifically

Open
#7,752 0 comments 0 reactions 0 assignees View on GitHub
firefox-bug playground
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
55

Description

Using the drag block in Firefox from the DraggableBlockPlugin in Lexical playground causes caret to disappear. Attempts to bring it back by clicking in editor fail. Only switching tabs brings caret back.

Lexical version: 0.34.0

## Steps To Reproduce

1. Open Lexical Playground in Firefox: https://playground.lexical.dev/
2. Use draggable block to move any text
3. Caret disappears. Any click on editor does not bring the caret back. (Switching tabs brings it back)

Firefox version 141.0.2
Mac OS 12.6

## The current behavior
Caret disappears on using draggable block.
## The expected behavior
Caret should reappear after dragging, like in Chrome.

## Impact of fix
Poor UX experience for Firefox users.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.