Skip to content

Commit 09fdc49

Browse files
authored
Merge pull request #50 from nativescript-community/fix/vue-parent-destroy-bug
fix(vue): destroy componentInstance and not the parent component
2 parents e92ab96 + e55f054 commit 09fdc49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/collectionview/vue/component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ export default {
7979
},
8080
onItemDisposingInternal(args) {
8181
const oldVnode = args.view && args.view[VUE_VIEW];
82-
if (oldVnode && oldVnode.context) {
83-
oldVnode.context.$destroy();
82+
if (oldVnode && oldVnode.componentInstance) {
83+
oldVnode.componentInstance.$destroy();
8484
args.view[VUE_VIEW] = null;
8585
}
8686
},

0 commit comments

Comments
 (0)