Skip to content

[menu][select][combobox] Call onTyping(false) when closing without moving focus - #5816

Merged
atomiks merged 1 commit into
mui:masterfrom
mdm317:fix/typeahead-reset-on-close
Sep 29, 2026
Merged

atomiks merged 1 commit into
mui:masterfrom
mdm317:fix/typeahead-reset-on-close

Conversation

@mdm317

@mdm317 mdm317 commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Reproduction

  1. Go to https://base-ui.com/react/components/menu#checkbox-items.
  2. Click the Workspace button.
  3. Type "s"
  4. Within 500 ms, press Escape.
  5. Press "Enter" to reopen the popup.
  6. Press "Space" to toggle the checkbox.

Expected: The checkbox toggles.
Actual: The checkbox does not toggle.

@pkg-pr-new

pkg-pr-new Bot commented Sep 28, 2026

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/react@5816
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@5816
    

commit: 62353f1

@code-infra-dashboard

code-infra-dashboard Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 🔺+17B(0.00%) 🔺+15B(+0.01%)

Details of bundle changes

Performance

Total duration: 1,053.47 ms -95.96 ms(-8.3%) | Renders: 76 (+0) | Paint: 1,745.70 ms -181.55 ms(-9.4%)

Test Duration Renders
Select mount (200 instances) 122.49 ms ▼-31.53 ms(-20.5%) 3 (+0)
Menu mount (300 instances) 73.42 ms ▼-21.91 ms(-23.0%) 1 (+0)
Tooltip mount (300 contained roots) 47.92 ms ▼-15.48 ms(-24.4%) 1 (+0)
Combobox type — 500 items, narrows to ~11 (type "Row 25") 27.45 ms ▼-10.13 ms(-27.0%) 15 (+0)

11 tests within noise — details


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

@netlify

netlify Bot commented Sep 28, 2026

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 62353f1
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6ababf64fd529700087b4edf
😎 Deploy Preview https://deploy-preview-5816--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.

@mdm317
mdm317 marked this pull request as ready for review September 28, 2026 19:34
@atomiks atomiks added component: select Changes related to the select component. component: menu Changes related to the menu component. type: bug It doesn't behave as expected. component: combobox Changes related to the combobox component. labels Sep 29, 2026
@atomiks atomiks changed the title [menu, combobox] Call onTyping(false) when closing without moving focus [menu][select][combobox] Call onTyping(false) when closing without moving focus Sep 29, 2026

@atomiks atomiks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the fix

@atomiks
atomiks merged commit 4cbd67a into mui:master Sep 29, 2026
26 of 27 checks passed
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. component: menu Changes related to the menu component. component: select Changes related to the select component. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants