Skip to content

Comments

[material-ui][Autocomplete] Fix popup reopening on window focus regain with openOnFocus#47790

Draft
aman44444 wants to merge 2 commits intomui:masterfrom
aman44444:fix/47661-autocomplete-openOnFocus
Draft

[material-ui][Autocomplete] Fix popup reopening on window focus regain with openOnFocus#47790
aman44444 wants to merge 2 commits intomui:masterfrom
aman44444:fix/47661-autocomplete-openOnFocus

Conversation

@aman44444
Copy link

fixes #47661

This PR fixes a bug in the Autocomplete component where openOnFocus would reopen the popup when the window regains focus.

  • Ensures the popup does not reopen when the user returns to the window via a click.

  • Preserves normal behavior when tabbing to the input.

  • Verified the fix works in Chrome and Firefox.

  • Accessibility tested to ensure no regressions.

  • I have followed (at least) the PR section of the contributing guide.

@mui-bot
Copy link

mui-bot commented Feb 16, 2026

Netlify deploy preview

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

Bundle size report

Bundle Parsed size Gzip size
@mui/material 🔺+157B(+0.03%) 🔺+25B(+0.02%)
@mui/lab 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

Generated by 🚫 dangerJS against 930313f

@aman44444 aman44444 marked this pull request as draft February 16, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Autocomplete] openOnFocus reopens popup when window regains focus and can trigger unintended option selection

2 participants