Skip to content

[combobox][select] Anchor multiple selection to first selected item - #5573

Merged
atomiks merged 9 commits into
mui:masterfrom
atomiks:codex/multiple-selection-anchor
Sep 1, 2026
Merged

atomiks merged 9 commits into
mui:masterfrom
atomiks:codex/multiple-selection-anchor

Conversation

@atomiks

@atomiks atomiks commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes #3077
Closes #5549

Multiple-selection popups continue to open from a selected item. When more than one item is selected, the anchor is the first selected item in rendered order rather than the most recently added value. This follows the single-selection rule and keeps the opening position stable when values are toggled or supplied in a different order.

Changes

  • Use the same rendered-order anchor in Combobox and Select, including individually rendered items and items collections.
  • Preserve the just-selected highlight when a filtered multiple Combobox clears its query.
  • Cover opening, query clearing, scrolling, controlled updates, and reordered value arrays.

APG guidance for multi-select listboxes:

Screenshot 2026-09-01 at 2 12 57 pm

@atomiks atomiks added component: select Changes related to the select component. type: expected behavior The current behavior is already the one expected. component: combobox Changes related to the combobox component. labels Aug 26, 2026
@pkg-pr-new

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

commit: a886870

@code-infra-dashboard

code-infra-dashboard Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 🔺+309B(+0.07%) 🔺+83B(+0.06%)

Details of bundle changes

Performance

Total duration: 1,094.78 ms +23.44 ms(+2.2%) | Renders: 76 (+0) | Paint: 1,766.09 ms +27.48 ms(+1.6%)

Test Duration Renders
Select open (500 options) 39.78 ms ▼-18.27 ms(-31.5%) 14 (+0)

14 tests within noise — details


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

@netlify

netlify Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit a886870
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a9679f136aff70008afca0d
😎 Deploy Preview https://deploy-preview-5573--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 removed the type: expected behavior The current behavior is already the one expected. label Aug 27, 2026
@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 28, 2026
@atomiks
atomiks force-pushed the codex/multiple-selection-anchor branch from 074b4d9 to ed42513 Compare September 1, 2026 03:49
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Sep 1, 2026
@atomiks
atomiks marked this pull request as ready for review September 1, 2026 04:53
@atomiks atomiks added the type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. label Sep 1, 2026
@atomiks
atomiks merged commit 2665e49 into mui:master Sep 1, 2026
7 checks passed
@atomiks
atomiks deleted the codex/multiple-selection-anchor branch September 1, 2026 07:17
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: 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

1 participant