facebook / facebook/lexical

Bug: comment selection highlight position incorrect in Playground

Open
#4,885 1 comment 1 reaction 0 assignees View on GitHub
playground popover
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
55

Description

Lexical version: Latest

## Steps To Reproduce

1. select content within Playground, copy and paste many times to enable scroll
2. scroll down and select the word to enable the floating menu, then click the **comment** button
3. show comment input box, but the pseudo selection position is incorrect, shown as follow gif

## The current behavior

![lexical-comment-position](https://github.com/facebook/lexical/assets/12870335/ff7d630c-e2a0-4778-a92b-e8ced6f842cf)

## The expected behavior

selection should be at the original selection area

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.