Skip to content

[floating-ui] Preserve pointer modality for untyped clicks - #5634

Open
brijeshb42 wants to merge 1 commit into
mui:masterfrom
brijeshb42:fix/floating-focus-empty-pointer-type
Open

[floating-ui] Preserve pointer modality for untyped clicks#5634
brijeshb42 wants to merge 1 commit into
mui:masterfrom
brijeshb42:fix/floating-focus-empty-pointer-type

Conversation

@brijeshb42

@brijeshb42 brijeshb42 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

A pointer click can legitimately have an empty pointerType. Preserve the preceding pointer interaction in that case instead of classifying the close as keyboard-driven.

#5630 provides the dependency-level reproduction: resolving @testing-library/user-event 14.6.6 causes the Dialog and Popover finalFocus tests to fail without this change.

Includes a focused regression test that dispatches an empty-pointerType click after a mouse pointerdown.

@pkg-pr-new

pkg-pr-new Bot commented Sep 4, 2026

Copy link
Copy Markdown

commit: 1d51bae

@code-infra-dashboard

code-infra-dashboard Bot commented Sep 4, 2026

Copy link
Copy Markdown

Bundle size

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

Details of bundle changes

Performance

Total duration: 1,300.40 ms -45.28 ms(-3.4%) | Renders: 76 (+0) | Paint: 2,087.53 ms -83.04 ms(-3.8%)

No significant changes — details


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

@brijeshb42 brijeshb42 added the type: bug It doesn't behave as expected. label Sep 4, 2026
@netlify

netlify Bot commented Sep 4, 2026

Copy link
Copy Markdown

Deploy Preview for base-ui ready!

Built without sensitive environment variables

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

@brijeshb42
brijeshb42 marked this pull request as ready for review September 4, 2026 05:48
@brijeshb42
brijeshb42 requested a review from a team September 4, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant