facebook / facebook/lexical

Bug: Dropdown misplacement after scrolling

Open
#5,289 4 comments 0 reactions 0 assignees View on GitHub
popover
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 16h
Merged PRs (30d)
61

Description

Lexical version: v0.12.4

## Steps To Reproduce

1. After package deployment, add the lexical editor to the necessary location.
2. Assuming the lexical editor is not at the top of the page but rather positioned at a specific part of the page after scrolling, when the toolbar's dropdown button is clicked, the dropdown appears not directly at the bottom of the toolbar but somewhere in the middle of the page.

## The current behavior
https://github.com/facebook/lexical/assets/70982342/93cba508-4df2-4c2b-9965-4d555d6ef77b

## The expected behavior

https://github.com/facebook/lexical/assets/70982342/104329a5-7565-4b4f-955a-d4fc627af708

Contributor guide

Open the contributing guide

Research direction

No source file or test is identified. Start by reproducing the issue with Lexical v0.12.4: place the editor below the top of the page, scroll, and open the toolbar dropdown. Done means the dropdown appears directly below the toolbar after scrolling, matching the expected behavior.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.