-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
TransitionRoot animation skipped when navigating #2
Comments
For the opening transition, you need to set the Please check the example implementation. |
I have that set (I used the modal and edit view from the examples), but because the page loads too fast, it skips it entirely or halfway.
Either |
By the way, do you use the latest version of Headless UI? They have that feature broken in 1.6.5. Try downgrading to 1.6.4. |
That works like a charm! Sorry for the ticket 😅 And thanks for the package! For those interested, the related tickets:
|
It’s all good! Thank you for testing it out |
@sebastiaanluca also, I'd recommend putting the |
A thing I noticed with Inertia, Headless UI, and using
TransitionRoot
is that it will skip the configured transition (or end it early) when navigating to or away from the modal route. Had a similar experience with a custom implementation. Kind of depends on how fast the route loads. When navigating to, it usually just pops up without transition. When navigating away, it starts but abruptly hides the modal when halfway.I assumed
@after-leave="redirect"
would take care of this because it only starts navigating after the transition ended, but it doesn't.Is there a way to fix this or configure it differently so it would fully transition in and out when navigating routes?
The text was updated successfully, but these errors were encountered: