Skip to content

[select][combobox] Remove dead code and deduplicate handlers - #5194

Merged
atomiks merged 4 commits into
mui:masterfrom
atomiks:claude/base-ui-select-combobox-size-6c62f5
Jul 10, 2026
Merged

atomiks merged 4 commits into
mui:masterfrom
atomiks:claude/base-ui-select-combobox-size-6c62f5

Conversation

@atomiks

@atomiks atomiks commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Removes dead code across Select and Combobox—an unused portal context, write-only store state, guards duplicated by Store.set's own Object.is bailout, and a filter branch shadowed by shouldBypassFiltering—and deduplicates repeated highlight and open-on-input handler blocks.

The cleanup preserves the existing Autocomplete locale-filtering behavior and Combobox inline synchronization timing.

Measured against current master:

  • @base-ui/react/combobox: −1,826 B parsed / −252 B gzip
  • @base-ui/react/autocomplete: −1,826 B parsed / −240 B gzip
  • @base-ui/react/select: −892 B parsed / −245 B gzip
  • @base-ui/react barrel: −2,627 B parsed / −491 B gzip

Focused Autocomplete, Combobox, and Select suites pass in jsdom and Chromium, along with TypeScript, formatting, and lint.

@atomiks atomiks added component: select Changes related to the select component. component: combobox Changes related to the combobox component. component: autocomplete Changes related to the autocomplete component. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Jul 10, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jul 10, 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@5194
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@5194
    

commit: 08ef687

@code-infra-dashboard

code-infra-dashboard Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react ▼-2.63KB(-0.56%) ▼-527B(-0.35%)

Details of bundle changes

Performance

Total duration: 1,358.82 ms -37.38 ms(-2.7%) | Renders: 78 (+0) | Paint: 2,091.89 ms -59.38 ms(-2.8%)

No significant changes — details


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

@netlify

netlify Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

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

@atomiks
atomiks force-pushed the claude/base-ui-select-combobox-size-6c62f5 branch from 6d01d3e to 68e64ef Compare July 10, 2026 06:16
@atomiks
atomiks force-pushed the claude/base-ui-select-combobox-size-6c62f5 branch from 68e64ef to 08ef687 Compare July 10, 2026 07:40
@atomiks
atomiks merged commit 9798cd1 into mui:master Jul 10, 2026
6 checks passed
@atomiks
atomiks deleted the claude/base-ui-select-combobox-size-6c62f5 branch July 10, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: autocomplete Changes related to the autocomplete component. component: combobox Changes related to the combobox component. component: select Changes related to the select component. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant