Merge pull request #1364 from QingWei-Li/fix/popper

Popper: fix not destroy in keep-alive mode, fixed #1359
pull/1369/head
baiyaaaaa 2016-11-26 01:24:43 +08:00 committed by GitHub
commit c5c5bbba9e
1 changed files with 5 additions and 0 deletions

View File

@ -152,5 +152,10 @@ export default {
this.popperElm &&
this.popperElm.parentNode === document.body &&
document.body.removeChild(this.popperElm);
},
// call destroy in keep-alive mode
deactivated() {
this.$options.beforeDestroy[0].call(this);
}
};