Skip to content

[navigation-menu] Fix transition width when reopening (#3073) - #4587

Merged
atomiks merged 4 commits into
mui:masterfrom
mdm317:fix-transition-width-when-reopen-3073
Apr 13, 2026
Merged

atomiks merged 4 commits into
mui:masterfrom
mdm317:fix-transition-width-when-reopen-3073

Conversation

@mdm317

@mdm317 mdm317 commented Apr 12, 2026 •

Copy link
Copy Markdown
Contributor

fixes #3073

This happened in this sequence:
open: true → open: false while the closing animation is still running → open: true

During that path:

  1. --popup-width is removed, so width: var(--popup-width) resolves to auto.
  2. Layout reflow is triggered. (getComputedStyle )
  3. --popup-width is set to the next width.

In this flow, the width transition does not start.

test

https://deploy-preview-4587--base-ui.netlify.app/experiments/navigation-menu

@pkg-pr-new

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

commit: 4627baa

@code-infra-dashboard

code-infra-dashboard Bot commented Apr 12, 2026 •

Copy link
Copy Markdown

Bundle size

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

Details of bundle changes

Deploy preview

https://deploy-preview-4587--base-ui.netlify.app/


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

@netlify

netlify Bot commented Apr 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 4627baa
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/69dc82c038a7df0008f84545
😎 Deploy Preview https://deploy-preview-4587--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.

@mdm317
mdm317 marked this pull request as ready for review April 12, 2026 15:53
@atomiks atomiks added type: bug It doesn't behave as expected. component: navigation menu Changes related to the navigation menu component. labels Apr 13, 2026

@atomiks atomiks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @mdm317

@atomiks
atomiks merged commit 7b52455 into mui:master Apr 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Navigation Menu resets transition when mouse hovers an item without content

2 participants