Skip to content

[lexical-react] Bug Fix: LexicalMenu position menu immediately regression#7669

Merged
etrepum merged 1 commit intofacebook:mainfrom
etrepum:useMenuAnchorRef-eager-append
Jul 3, 2025
Merged

[lexical-react] Bug Fix: LexicalMenu position menu immediately regression#7669
etrepum merged 1 commit intofacebook:mainfrom
etrepum:useMenuAnchorRef-eager-append

Conversation

@etrepum
Copy link
Copy Markdown
Collaborator

@etrepum etrepum commented Jul 3, 2025

Description

The LexicalMenu change in #7181 caused a regression where extra DIVs were left in the DOM, sometimes taking up space and preventing interaction with the elements below.

Closes #7668

Test plan

First follow #7668 repro steps

Before

> [...new Set([...document.querySelectorAll('div[aria-label="Typeahead menu"]')].map((el) => el.style.cssText))]
(2) ['display: block; position: absolute;', 'display: block; position: absolute; left: 216px; height: 17.5px; width: 21.0938px; top: 166.273px;']

After

> [...new Set([...document.querySelectorAll('div[aria-label="Typeahead menu"]')].map((el) => el.style.cssText))]
['display: block; position: absolute;']

@vercel
Copy link
Copy Markdown

vercel bot commented Jul 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2025 5:16pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2025 5:16pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 3, 2025
@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label Jul 3, 2025
@etrepum etrepum added this pull request to the merge queue Jul 3, 2025
Merged via the queue into facebook:main with commit d541fe8 Jul 3, 2025
43 checks passed
@etrepum etrepum mentioned this pull request Jul 3, 2025
@etrepum etrepum deleted the useMenuAnchorRef-eager-append branch September 29, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: LexicalMenu typeahead-menu leaves dangling DIVs which can prevent clicks

3 participants