Jenesius / vue-modal

🖖The progressive and simple modal system for Vue.js v3
https://modal.jenesius.com
MIT License
145 stars 14 forks source link

Add appear prop on transition-group for correct animation for defineAsyncComponent #118

Closed 7virus7 closed 3 months ago

7virus7 commented 3 months ago

Is your feature request related to a problem? Please describe. If the component is connected using defineAsyncComponent, then the animation does not work on the first load

Describe the solution you'd like Add transition-group prop appear or setting for it return h(TransitionGroup, {name: configuration.animation, tag: "div"} to return h(TransitionGroup, {name: configuration.animation, tag: "div", appear: true} or return h(TransitionGroup, {name: configuration.animation, tag: "div", appear: configuration.appear}

Jenesius commented 3 months ago

Please note version 1.11.7. I added the appear value to the config.

import {config} from "jenesius-vue-modal"
config({
  appear: true
})

I also set it to true by default.

Thanks for your help in improving the library!

7virus7 commented 3 months ago

Thank you to!