Skip to content

[popups] Fix click and drag outside nested popup from closing parents - #3571

Merged
atomiks merged 1 commit into
mui:masterfrom
atomiks:fix/nested-popover-started-inside
Dec 30, 2025
Merged

atomiks merged 1 commit into
mui:masterfrom
atomiks:fix/nested-popover-started-inside

Conversation

@atomiks

@atomiks atomiks commented Dec 17, 2025 •

Copy link
Copy Markdown
Contributor

We need to mark that a press occurred inside any nested (portaled) children. This ensures dragging on a nested open popover and releasing outside doesn't close the parent.

Repro: https://stackblitz.com/edit/ufqitdie?file=src%2FApp.tsx
Press down inside nested popover, drag outside, release pointer up - parent does not close.

@atomiks atomiks added type: bug It doesn't behave as expected. scope: all components Widespread work has an impact on almost all components. labels Dec 17, 2025
@pkg-pr-new

pkg-pr-new Bot commented Dec 17, 2025 •

Copy link
Copy Markdown
  • vite-css-base-ui-example

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

commit: 8a3752f

@mui-bot

mui-bot commented Dec 17, 2025 •

Copy link
Copy Markdown

Bundle size report

Bundle Parsed size Gzip size
@base-ui/react 🔺+111B(+0.03%) ▼-38B(-0.03%)

Details of bundle changes


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

@netlify

netlify Bot commented Dec 17, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 8a3752f
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6953692cb8a31f0007c17c29
😎 Deploy Preview https://deploy-preview-3571--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 fix/nested-popover-started-inside branch 2 times, most recently from 6ab6264 to e311733 Compare December 17, 2025 21:35
@atomiks
atomiks marked this pull request as ready for review December 17, 2025 21:41
@atomiks
atomiks force-pushed the fix/nested-popover-started-inside branch from e311733 to f38301f Compare December 29, 2025 11:43
@atomiks
atomiks force-pushed the fix/nested-popover-started-inside branch from f38301f to 8a3752f Compare December 30, 2025 05:54
@atomiks
atomiks merged commit 896ae61 into mui:master Dec 30, 2025
@atomiks
atomiks deleted the fix/nested-popover-started-inside branch December 30, 2025 08:14
atomiks added a commit to atomiks/base-ui that referenced this pull request Dec 30, 2025
atomiks added a commit to atomiks/base-ui that referenced this pull request Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: all components Widespread work has an impact on almost all components. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants