-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Description
Components that use both sub-components and partials throw error on $destroy.
var view = new Vue({
template: '<div><div v-component="dialog"><div v-partial="hello"></div></div></div>',
partials: {
hello: 'Hello {{name}}'
},
components: {
dialog: {
template: '<content>'
}
}
});
view.$mount();
view.$appendTo(document.body);
view.$destroy();
Result:
Error: 'undefined' is not an object (evaluating 'this._directives[i]._teardown')
{anonymous}() node_modules/vue/src/api/lifecycle.js:87
...
Metadata
Metadata
Assignees
Labels
No labels