Skip to content

[combobox] Fix virtualized grid arrow navigation wrapping - #4164

Merged
atomiks merged 8 commits into
mui:masterfrom
atomiks:codex/virtualized-grid-arrowup-fix
Mar 4, 2026
Merged

atomiks merged 8 commits into
mui:masterfrom
atomiks:codex/virtualized-grid-arrowup-fix

Conversation

@atomiks

@atomiks atomiks commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #4160. Ensures vertical arrow wrapping uses full-list semantics (not the rendered/virtualized window)

@atomiks atomiks added type: bug It doesn't behave as expected. component: combobox Changes related to the combobox component. labels Feb 23, 2026
@pkg-pr-new

pkg-pr-new Bot commented Feb 23, 2026 •

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

  • vite-css-base-ui-example

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

commit: d36c68b

@mui-bot

mui-bot commented Feb 23, 2026 •

Copy link
Copy Markdown

Bundle size report

Bundle Parsed size Gzip size
@base-ui/react 🔺+92B(+0.02%) 🔺+138B(+0.09%)

Details of bundle changes


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

@netlify

netlify Bot commented Feb 23, 2026

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 2990452
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/699bd8bad669740008a71263
😎 Deploy Preview https://deploy-preview-4164--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks
atomiks force-pushed the codex/virtualized-grid-arrowup-fix branch from 2cdae2e to 2990452 Compare February 23, 2026 04:39
@netlify

This comment was marked as duplicate.

@netlify

This comment was marked as duplicate.

@netlify

netlify Bot commented Feb 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit da0d85b
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/69a7d76d3b140f0008aa22e2
😎 Deploy Preview https://deploy-preview-4164--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks
atomiks marked this pull request as ready for review February 23, 2026 04:45
@atomiks

atomiks commented Mar 3, 2026 •

Copy link
Copy Markdown
Contributor Author

Codex Review

Overview

This PR updates virtualized grid vertical navigation so wrapping follows full-list semantics instead of the rendered window, while preserving row-based clamping for ragged rows. It also adds regressions for partial-last-row behavior, including disabled-candidate fallback.

Findings (None)

No blocking issues found in this patch.

Confidence: 5/5

High confidence after full branch review (master...codex/virtualized-grid-arrowup-fix), focused test execution, and targeted micro-benchmark verification of the hot-path change.

Notes

  • Verified tests: pnpm test:jsdom useListNavigation --no-watch (55 passing).
  • Verified formatting: pnpm prettier --check packages/react/src/floating-ui-react/utils/composite.ts packages/react/src/floating-ui-react/hooks/useListNavigation.test.tsx.
  • Perf check (100k iterations × 6 rounds, synthetic virtualized grid):
    • Vertical paths remain slower vs base due added inferred-row handling (ArrowUp +26.3%, ArrowDown +21.5%).
    • Non-vertical path now avoids row inference (ArrowRight -99.7% vs base in the same harness), which resolves the previously flagged unconditional overhead.

@atomiks
atomiks merged commit 60cf38c into mui:master Mar 4, 2026
6 checks passed
@atomiks
atomiks deleted the codex/virtualized-grid-arrowup-fix branch March 4, 2026 07:11
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. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[combobox] Keyboard highlight issues with virtualized grid

2 participants