Skip to content

[drawer] Preserve item taps when dismissing the virtual keyboard - #5882

Merged
atomiks merged 4 commits into
mui:masterfrom
atomiks:claude/base-ui-issue-5877-e5fa6f
Oct 6, 2026
Merged

atomiks merged 4 commits into
mui:masterfrom
atomiks:claude/base-ui-issue-5877-e5fa6f

Conversation

@atomiks

@atomiks atomiks commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #5877.

Tapping an item while the software keyboard is open can move focus away from the drawer input. Resetting the keyboard inset and scroll slack synchronously moves the item before the tap's compatibility mouseup and click, causing the first tap to miss. Defer that layout cleanup until the next animation frame, and preserve pending cleanup when a pointer-down cancels input alignment.

Adds native-click and cleanup regression coverage. Reproduced the missed first tap in Mobile Safari on an iPhone 17 Pro simulator running iOS 26.5; the fix activated the button on the first tap in all three trials.

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

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

commit: 00a5aa9

@code-infra-dashboard

code-infra-dashboard Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Bundle size

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

Details of bundle changes

Performance

Total duration: 562.07 ms +25.53 ms(+4.8%) | Renders: 76 (+0) | Paint: 1,005.88 ms +39.01 ms(+4.0%)

Test Duration Renders
Combobox open — 500 items 15.11 ms 🔺+3.78 ms(+33.3%) 4 (+0)
Dialog mount (300 instances) 16.06 ms 🔺+3.69 ms(+29.8%) 1 (+0)
Popover mount (300 instances) 19.12 ms 🔺+3.67 ms(+23.7%) 1 (+0)
Menu open (500 items) 27.82 ms +3.56 ms(+14.7%) 11 (+0)
Combobox type — 500 items, narrows to ~11 (type "Row 25") 19.79 ms +3.03 ms(+18.1%) 15 (+0)

10 tests within noise — details

Metric alarms

Test Metric Change
Combobox open — 500 items bench:paint#combobox-open 🔺 +7.64 ms
Combobox open — 500 items bench:paint 🔺 +7.64 ms
Dialog mount (300 instances) bench:paint 🔺 +6.35 ms
Menu open (500 items) bench:paint 🔺 +11.28 ms
Menu open (500 items) bench:paint#menu-open 🔺 +11.28 ms

…and 2 more metric alarms — details


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

@netlify

netlify Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 00a5aa9
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6ac4af74f9e8e100085afa64
😎 Deploy Preview https://deploy-preview-5882--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 marked this pull request as ready for review October 5, 2026 06:39
@atomiks
atomiks merged commit ab0a2cb into mui:master Oct 6, 2026
21 of 22 checks passed
@atomiks
atomiks deleted the claude/base-ui-issue-5877-e5fa6f branch October 6, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: drawer Changes related to the drawer component. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[drawer] VirtualKeyboardProvider absorbs taps while the keyboard is open

1 participant