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
As is, when you check the conditional checkbox and submit, the parent's state is updated, component is re-rendered and the conditional component is added/removed, and the exitRight animation fires off even when you're on Form 1 (and not stepping). This looks pretty janky.
If I add a custom transition (see below) to StepWizard, with exitRight set to null, then it removes the issue, but you won't have a "back" animation anymore. Better, but not great.
My questions are..
1). Is there a better way to conditionally render a step?
2). Would this other way fix the animation issue described above?
3). If my above code is sound, then what would be the best way to fix the conditional 'ghost animation', while retaining exit animations when you actually want them?
Thank you very much for your time.
The text was updated successfully, but these errors were encountered:
I'm having an (exit) animation issue when making conditional steps.
Parent
Child Step
As is, when you check the conditional checkbox and submit, the parent's state is updated, component is re-rendered and the conditional component is added/removed, and the exitRight animation fires off even when you're on Form 1 (and not stepping). This looks pretty janky.
If I add a custom transition (see below) to StepWizard, with exitRight set to null, then it removes the issue, but you won't have a "back" animation anymore. Better, but not great.
My questions are..
1). Is there a better way to conditionally render a step?
2). Would this other way fix the animation issue described above?
3). If my above code is sound, then what would be the best way to fix the conditional 'ghost animation', while retaining exit animations when you actually want them?
Thank you very much for your time.
The text was updated successfully, but these errors were encountered: