Skip to content

[lexical-react] [lexical-playground] Bug Fix: Prevent typeahead menu from closing during IME composition (#7985) - #7987

Merged
etrepum merged 1 commit into
meta:mainfrom
kykim00:prevent-typeahead-close-during-ime
Nov 13, 2025
Merged

etrepum merged 1 commit into
meta:mainfrom
kykim00:prevent-typeahead-close-during-ime

Conversation

@kykim00

@kykim00 kykim00 commented Nov 13, 2025

Copy link
Copy Markdown
Contributor

Description

During IME composition (Korean, Japanese, Chinese), the browser creates a range selection causing selection.isCollapsed() to return false, incorrectly closing the typeahead menu.

Changes:

Add editor.isComposing() check with early return in updateListener<link to Repo facebook/lexical: packages/lexical/src/LexicalEditor.ts:806-808 />
Add E2E test for IME composition with typeahead menu
Affects MentionsPlugin, ComponentPickerPlugin, EmojiPickerPlugin.

Closes #7985

Test plan

Before

2025-11-13.2.29.11.mov

After

2025-11-13.2.27.46.mov

@vercel

vercel Bot commented Nov 13, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
lexical Ready Ready Preview Comment Nov 13, 2025 5:34am
lexical-playground Ready Ready Preview Comment Nov 13, 2025 5:34am

@meta-cla meta-cla 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 Nov 13, 2025
@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label Nov 13, 2025

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — e5e32aa8 Deployed Nov 13, 2025 by vercel[bot]
Preview – lexical — e5e32aa8 Deployed Nov 13, 2025 by vercel[bot]
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: LexicalTypeaheadMenuPlugin closes typeahead menu during IME composition

2 participants