Giter Site home page Giter Site logo

Comments (6)

lepikhinb avatar lepikhinb commented on August 16, 2024 2

@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.

lepikhinb avatar lepikhinb commented on August 16, 2024 1

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.

sebastiaanluca avatar sebastiaanluca commented on August 16, 2024 1

That works like a charm! Sorry for the ticket πŸ˜… And thanks for the package!

For those interested, the related tickets:

from momentum-modal.

lepikhinb avatar lepikhinb commented on August 16, 2024

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.

sebastiaanluca avatar sebastiaanluca commented on August 16, 2024

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.

lepikhinb avatar lepikhinb commented on August 16, 2024

It’s all good! Thank you for testing it out

from momentum-modal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.