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
Apply that directive to element with v-if and wrapped in <transition>
Toggle visibility of that element
What is expected?
inserted hook to fire (just like bind hook)
What is actually happening?
inserted hook doesn't fire at all
I've spent like couple of hours debugging this on my custom directive VueBar (DominikSerafin/vuebar#5) because I thought this was issue with my code. Unfortunately I think that's issue with Vue itself.
There is a workaround though; just wrap element with directive in another element that will get transitioned (like in 3rd example in the reproduction).
The text was updated successfully, but these errors were encountered:
DominikSerafin
changed the title
Directive "inserted" hook doesn't fire when transition is used on binded element
Custom directive "inserted" hook doesn't fire when transition is used on binded element
Jul 12, 2017
Version
2.3.4
Reproduction link
https://jsfiddle.net/aL1dgdc8/11/
Steps to reproduce
inserted
hookv-if
and wrapped in<transition>
What is expected?
inserted
hook to fire (just likebind
hook)What is actually happening?
inserted
hook doesn't fire at allI've spent like couple of hours debugging this on my custom directive VueBar (DominikSerafin/vuebar#5) because I thought this was issue with my code. Unfortunately I think that's issue with Vue itself.
There is a workaround though; just wrap element with directive in another element that will get transitioned (like in 3rd example in the reproduction).
The text was updated successfully, but these errors were encountered: