You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a react component with 2 separate transitions. The icon to open the dialog correctly enters/leaves on click but the actual dialog does not. The intended transition is on dialog opening, the icon to open it slides down out of view and the dialog box slides up into view then vice versa on close.
What's currently happening is, on open, the dialog box is starting at the original position in the page then sliding down to a lower position than intended. On close, it continues down in the intended direction.
So far, I've tried to remove the dialog, I've tested other transition effects, removed the translate className in the Dialog, wrapped the transition and/or dialog in a div and applied classes to that. Nothing has made a difference so far. The only thing that made a difference is setting the transition around the dialog to as='div' instead of as={fragment} which causes there to be no animation.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a react component with 2 separate transitions. The icon to open the dialog correctly enters/leaves on click but the actual dialog does not. The intended transition is on dialog opening, the icon to open it slides down out of view and the dialog box slides up into view then vice versa on close.
What's currently happening is, on open, the dialog box is starting at the original position in the page then sliding down to a lower position than intended. On close, it continues down in the intended direction.
Here is the component in action. Example
I'm using
And here is the minimal code causing the issue,
So far, I've tried to remove the dialog, I've tested other transition effects, removed the translate className in the Dialog, wrapped the transition and/or dialog in a div and applied classes to that. Nothing has made a difference so far. The only thing that made a difference is setting the transition around the dialog to as='div' instead of as={fragment} which causes there to be no animation.
Beta Was this translation helpful? Give feedback.
All reactions