Skip to content

[drawer] Fix transition jump#48308

Open
mj12albert wants to merge 1 commit intomui:masterfrom
mj12albert:fix-drawer-transition-jump
Open

[drawer] Fix transition jump#48308
mj12albert wants to merge 1 commit intomui:masterfrom
mj12albert:fix-drawer-transition-jump

Conversation

@mj12albert
Copy link
Copy Markdown
Member

@mj12albert mj12albert commented Apr 16, 2026

Fixes #16463

Before: https://stackblitz.com/edit/rq6e2eoh?file=src%2FDemo.tsx

After: https://stackblitz.com/edit/rq6e2eoh-jcm6h4wn?file=src%2FDemo.tsx

Watch the red edge of the drawer, before the fix, it shifts to the left before closing.

Drawer now sets closeAfterTransition: true by default, which should be ok since the only user-perceivable change is the timing of scroll unlock (before vs after transition)

@mj12albert mj12albert added type: bug It doesn't behave as expected. scope: drawer Changes related to the drawer. labels Apr 16, 2026
@mj12albert mj12albert force-pushed the fix-drawer-transition-jump branch from e48034b to 1b9b646 Compare April 16, 2026 18:26
@code-infra-dashboard
Copy link
Copy Markdown

code-infra-dashboard bot commented Apr 16, 2026

Bundle size

Bundle Parsed size Gzip size
@mui/material 🔺+160B(+0.03%) 🔺+50B(+0.03%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Deploy preview

https://deploy-preview-48308--material-ui.netlify.app/


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

@mj12albert mj12albert force-pushed the fix-drawer-transition-jump branch from 1b9b646 to fc1e0f2 Compare April 16, 2026 20:09
@mj12albert mj12albert force-pushed the fix-drawer-transition-jump branch from fc1e0f2 to 8213aaa Compare April 17, 2026 08:58
@mj12albert mj12albert marked this pull request as ready for review April 17, 2026 09:09
@zannager zannager requested a review from siriwatknp April 17, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Drawer] Container of Drawer jumps

1 participant