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
In Vue 2 you should avoid directly manipulating slot children. Instead of $destroying it, you should have a v-if controlling the slot component in the parent:
Version
2.2.4
Reproduction link
http://jsbin.com/canofepuyi/edit?html,console
Steps to reproduce
two compoennts: comB and comA, comA as a slot into comB, when use $destroy() in comB to destroy comA, the instance is removed, but dom not.
** in Vue1, it worked. **
What is expected?
dom removed too
What is actually happening?
dom not removed
The text was updated successfully, but these errors were encountered: