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
Here are the steps to reproduce it, JSFiddle references in brackets:
Create a component with a slot that has a v-else directive on it (MyWrapper).
Create another component that imports/uses the first one (MyComponent).
In the second component, create a custom directive with bind/unbind functions (myDirective).
In the template of the second component, use the first component (wrapper) and insert an element with the custom directive inside it so it gets rendered in place of the slot.
Call vm.$destroy() on your instance. This should call unbind on the custom directive, but it doesn't.
If you remove v-else from the slot in MyWrapper, everything works as expected. My current workaround is simply replacing
Apologies for the long title, here's a JSFiddle.
Here are the steps to reproduce it, JSFiddle references in brackets:
v-else
directive on it (MyWrapper
).MyComponent
).myDirective
).vm.$destroy()
on your instance. This should callunbind
on the custom directive, but it doesn't.If you remove
v-else
from the slot inMyWrapper
, everything works as expected. My current workaround is simply replacingwith
Tested with latest (1.0.15) version.
The text was updated successfully, but these errors were encountered: