Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontal Collapse is twitching #44940

Open
tomashauser opened this issue Jan 4, 2025 · 0 comments
Open

Horizontal Collapse is twitching #44940

tomashauser opened this issue Jan 4, 2025 · 0 comments
Assignees
Labels
component: Collapse The React component status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@tomashauser
Copy link

tomashauser commented Jan 4, 2025

Steps to reproduce

Steps:

  1. Open this link to live example: https://codesandbox.io/p/sandbox/transition-group-with-horizontal-collapse-2frjrp
  2. Click on the "Add" button several times

Current behavior

In some instances a strange twitching happens. This event stretches the page, hence why there is a scrollbar for a brief moment. The card has a full width for a split second, and then it goes back to 0 width and expands slowly.

Expected behavior

The animation is smooth. There is no twitching, it starts from 0 width and expands as expected.

Context

I'm trying to achieve this exact scenario from the documentation but in a horizontal manner.

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: horizontal, collapse, twitching, transition-group

@tomashauser tomashauser added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 4, 2025
@zannager zannager added the component: Collapse The React component label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Collapse The React component status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants