Repository navigation
[combobox][menu][select] Revert highlightItem imperative action - #5910
Merged
Merged
Conversation
This reverts commit 9d150e4 (mui#5586). Later changes built on the action are removed with it: the `'imperative-action'` highlight reason on `onItemHighlighted` for Menu, Combobox and Autocomplete (mui#5838), the filterable-menu tests and docs that called `highlightItem()` (mui#5527), and the imperative-source exception in the Combobox `onNavigate` guard. The inline-list reset exception from mui#5815 is kept.
michaldudak
requested review from
aarongarciah,
atomiks,
colmtuite,
flaviendelangle and
jjenzz
as code owners
October 7, 2026 11:36
commit: |
Member
|
to those following along: we plan to handle this still, but not as an imperative API so removing it from current release while we resolve this. |
Bundle size
PerformanceTotal duration: 562.73 ms +58.00 ms(+11.5%) | Renders: 76 (+0) | Paint: 1,007.78 ms +89.12 ms(+9.7%)
…and 2 more (+8 within noise) — details Metric alarms
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
The grid guard in useListNavigation is a standalone fix that mui#5586 shipped, not part of highlightItem. Without it, keys the grid does not handle re-report the current highlight, which corrupts inline Autocomplete input in grid mode. Also keep three onItemHighlighted tests from mui#5527 that cover live syncHighlightedItem behavior, now set up through keyboard and hover.
This was referenced Nov 20, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #5586.
Removes the
highlightItem()action from theactionsRefofCombobox.Root,Autocomplete.Root,Menu.Root,ContextMenu.RootandSelect.Root, along with the exported<Component>.Root.HighlightItemTargettypes, the docs sections and the keyboard-shortcuts demos.This isn't a plain
git revert: 23 later commits touched the same files. Each conflict was resolved against current master so that only the feature is removed. Later work that depended on it is removed too:'imperative-action'reason ononItemHighlightedfor Menu, Combobox and Autocomplete ([menu][combobox] Pass the originating event to onItemHighlighted #5838). Nothing produces it once the action is gone.highlightItem()([menu] Add filterable menus #5527).onNavigateguard. The inline-list reset exception from [combobox] Fix inline highlight reset on close #5815 is kept.Kept from #5586 and #5527 because they don't depend on the action:
useListNavigationthat skips re-reporting the current highlight when the grid navigator returns an unchanged index, plus its Combobox test. Without it, keys the grid doesn't handle re-fireonItemHighlighted, and inline Autocomplete in grid mode writes the stale item into the input.onItemHighlightedtests from [menu] Add filterable menus #5527 that coversyncHighlightedItem(a stale reason after a list change, and the callback being removed and added back). Their setup now uses keyboard and hover instead ofhighlightItem.API docs regenerated with
pnpm docs:api.