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
{{ message }}
Repository navigation
Custom directive's unmounted event is not triggered on v-for element #12569
changed the title [-]Custom directive's umounted event is not triggered on v-for element[/-][+]Custom directive's unmounted event is not triggered on v-for element[/+]on Dec 17, 2024
The root cause is the missing NEED_PATCH. Elements are marked as NEED_PATCH when using custom directives individually, but when wrapped in v-for, NEED_PATCH is lost. will be fixed in #11682
Activity
[-]Custom directive's umounted event is not triggered on v-for element[/-][+]Custom directive's unmounted event is not triggered on v-for element[/+]edison1105 commentedon Dec 19, 2024
similar to #9239
The root cause is the missing
NEED_PATCH. Elements are marked asNEED_PATCHwhen using custom directives individually, but when wrapped in v-for,NEED_PATCHis lost. will be fixed in #11682For more similar issues, refer to #11682 (comment)
fix(compiler-core): preserve vnode lifecycle in stable v-for (vuejs#1…