Skip to content

[combobox] Fix stale IME text after pointer selection - #6176

Open
rvitaliy wants to merge 1 commit into
mui:masterfrom
rvitaliy:fix/combobox-ime-pointer-selection
Open

rvitaliy wants to merge 1 commit into
mui:masterfrom
rvitaliy:fix/combobox-ime-pointer-selection

Conversation

@rvitaliy

@rvitaliy rvitaliy commented Nov 5, 2026

Copy link
Copy Markdown

Fixes #5574.

Dismiss the IME preview after an accepted item-selection fill or clear, including reselecting the current value. Preserve canceled changes and Android composition commits; ignore a trailing compositionend after the preview was replaced.

The approach follows #5579, with resets limited to selection-related writes. iOS keeps its existing behavior due to WebKit #255857. Multiple selection with the input outside the popup is unchanged.

Regression tests use English words and native Chromium IME composition through CDP. They fail without the fix.

Validation: Combobox/Autocomplete jsdom (1,153 passed), Chromium (1,239 passed), E2E (12 passed), TypeScript, ESLint, Stylelint, and Prettier.

AI assistance: Codex helped implement, review, and test this change.

@pkg-pr-new

pkg-pr-new Bot commented Nov 5, 2026

Copy link
Copy Markdown

commit: 8697e82

@code-infra-dashboard

code-infra-dashboard Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 🔺+216B(+0.04%) 🔺+75B(+0.04%)

Details of bundle changes

Performance

No regressions in 36 benchmarks · ran 3m 56s · details


Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Nov 5, 2026

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 8697e82
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6aec4df285d4bd3ef00b5cfb
😎 Deploy Preview https://deploy-preview-6176--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: combobox Changes related to the combobox component.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[combobox] Item selected with the mouse during IME composition leaves stale text in the input

2 participants