Comments (6)
@sebastiaanluca also, I'd recommend putting the @after-leave
event on a single TransitionChild
instead of TransitionRoot
, as it seems, that the root component fires the event for every transition child.
from momentum-modal.
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.
from momentum-modal.
That works like a charm! Sorry for the ticket π And thanks for the package!
For those interested, the related tickets:
from momentum-modal.
For the opening transition, you need to set the appear
property to make the transition work on an initial request.
Please check the example implementation.
from momentum-modal.
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.
<TransitionRoot appear as="template" :show="show" @after-leave="redirect">
β¦
Either @after-leave="redirect"
triggers too fast (duration set to 500ms using duration-500
) or it ignores it and navigates instantly. Anyhow, it happens on page load too, so I'm thinking there's something with the transitions and mounting/unmounting the component.
from momentum-modal.
Itβs all good! Thank you for testing it out
from momentum-modal.
Related Issues (20)
- Cannot read properties of null (reading 'props') HOT 4
- Modal/Slide-over resets form fields HOT 1
- How to show Modal from another Modal HOT 2
- Could not resolve "@inertiajs/vue3" HOT 3
- Possible to pass a URL to redirect function? HOT 1
- baseRoute component rerender every time
- Any example on how to use it with Svelte?
- Header X-Inertia-Modal-Redirect - CORS issue
- Call to a member function with() on null HOT 1
- Cannot read properties of null (reading 'props') HOT 1
- [Question] Possible to prevent reloading if already open?
- TypeScript typings HOT 1
- Problem with Inertia forms HOT 1
- Need to @click='close' when using links inside modals? HOT 4
- Modal 404s When Accessing Again
- Demo page incorrect password
- Refresh the baseRoute page data HOT 2
- Base Component resets state when opening the modal
- Please support inertia-laravel v1.0
- How to use preserve state on close correctly? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from momentum-modal.