Skip to content

[select] Add Support typeahead when closed#48504

Open
atharva3333 wants to merge 6 commits intomui:masterfrom
atharva3333:select-typeahead
Open

[select] Add Support typeahead when closed#48504
atharva3333 wants to merge 6 commits intomui:masterfrom
atharva3333:select-typeahead

Conversation

@atharva3333
Copy link
Copy Markdown
Contributor

@atharva3333 atharva3333 commented May 9, 2026

fixes #48467

https://deploy-preview-48504--material-ui.netlify.app/material-ui/react-select/

Added tests to verify that typeahead keyboard navigation does not trigger when the Select is open, multiple, readOnly, or disabled. Also added coverage for matching, cycling, and timeout reset behavior.

@code-infra-dashboard
Copy link
Copy Markdown

code-infra-dashboard Bot commented May 9, 2026

Deploy preview

https://deploy-preview-48504--material-ui.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/material 🔺+1.17KB(+0.23%) 🔺+442B(+0.30%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes


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

event.currentTarget.click();
};

const handleTypeaheadKeyDown = (event) => {
Copy link
Copy Markdown
Member

@mj12albert mj12albert May 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This creates a whole new self-contained chunk of typeahead logic that is inconsistent with the existing (open typeahead) behaviors, I don't think this PR is going in right direction overall @atharva3333

Also noticed it incorrectly makes disabled items and non-interactive subheaders in grouped selects candidates for typeahead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you clarify how you would prefer this issue to be approached?

Should the closed Select typeahead reuse/extend the existing MenuList typeahead behavior directly, rather than introducing separate matching/state logic inside SelectInput?

Copy link
Copy Markdown
Member

@mj12albert mj12albert May 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't thought about this too much yet

If you are still interested in working on this you could dig into the code a little deeper and use the original issue thread (not this PR) for questions/ideas etc

Should the closed Select typeahead reuse/extend the existing MenuList

Have you tried to or considered it yourself?

@zannager zannager added the scope: select Changes related to the select. label May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: select Changes related to the select.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[select] Support typeahead when closed

3 participants