mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-05 22:14:44 +00:00
fix tooltip errors in console #188
This commit is contained in:
parent
2ac683acb5
commit
b3a1f2b1ce
2 changed files with 9 additions and 2 deletions
|
|
@ -208,7 +208,14 @@
|
|||
});
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.contentObserver.disconnect();
|
||||
if (this.contentObserver) {
|
||||
this.contentObserver.disconnect();
|
||||
}
|
||||
|
||||
if (this.navigationObserver) {
|
||||
this.navigationObserver.disconnect();
|
||||
}
|
||||
|
||||
window.removeEventListener('resize', this.calculateOnWatch);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@
|
|||
generateTooltipClasses() {
|
||||
let classes = [];
|
||||
|
||||
this.parentElement.classList.forEach((cssClass) => {
|
||||
[...this.parentElement.classList].forEach((cssClass) => {
|
||||
if (cssClass.indexOf('md-') >= 0 && cssClass !== 'md-active') {
|
||||
classes.push(cssClass + '-tooltip');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue