Skip to content

[combobox] Fix iOS viewport settling - #4351

Merged
atomiks merged 2 commits into
mui:masterfrom
atomiks:codex/combobox-ios-viewport-settling
Mar 19, 2026
Merged

atomiks merged 2 commits into
mui:masterfrom
atomiks:codex/combobox-ios-viewport-settling

Conversation

@atomiks

@atomiks atomiks commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

When the input is outside the popup, we need to let mobile software keyboards "settle" to avoid 1) flip-flickers, and 2) issues with the selected item not scrolling into view due to the delayed visual viewport resize.

In iOS 26, this needs to be increased vs. iOS 18 which was faster to adjust the settling visual viewport size. 100ms appears to be robust when manually testing unlike 50ms.

@atomiks atomiks added type: bug It doesn't behave as expected. browser: Safari Affects or fixes behavior in Apple Safari. mobile Targets mobile platform. component: combobox Changes related to the combobox component. labels Mar 16, 2026
@pkg-pr-new

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

commit: 32e08fb

@mui-bot

mui-bot commented Mar 16, 2026 •

Copy link
Copy Markdown

Bundle size report

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

Details of bundle changes


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

@netlify

netlify Bot commented Mar 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 32e08fb
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/69bb40db6c0cb60008544b2c
😎 Deploy Preview https://deploy-preview-4351--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/combobox-ios-viewport-settling branch 5 times, most recently from 2a5edaf to 05c572f Compare March 17, 2026 10:00
@atomiks

atomiks commented Mar 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Codex Review

Overview

This patch only changes one behavior: it doubles the touch-open delay for the outside-input combobox path from 50ms to 100ms to reduce the visible top-to-bottom repositioning on touch devices when the mobile keyboard settles.

Findings (None)

No blocking issues found in this patch.

Confidence: 4/5

High confidence because the branch diff is very small, the affected code path is easy to reason about, and the key build and test checks are green. Residual risk is mostly around real-device mobile behavior, which is not directly covered by the automated tests.

Notes

  • Verified the current branch against the full PR diff, not only the latest edit.
  • Re-reviewed after aligning the inline comment with the intended cross-touch behavior.
  • Checked the broad correctness and maintenance categories, plus focused verification with pnpm exec tsc -p packages/react/tsconfig.build.json --noEmit, pnpm release:build, and pnpm test:jsdom ComboboxRoot --no-watch.

@atomiks atomiks removed the browser: Safari Affects or fixes behavior in Apple Safari. label Mar 17, 2026
@atomiks
atomiks force-pushed the codex/combobox-ios-viewport-settling branch from 05c572f to fca535e Compare March 17, 2026 10:09
@atomiks
atomiks marked this pull request as ready for review March 17, 2026 10:11
@atomiks
atomiks merged commit 819208f into mui:master Mar 19, 2026
7 checks passed
@atomiks
atomiks deleted the codex/combobox-ios-viewport-settling branch March 19, 2026 00:24
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. mobile Targets mobile platform. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants