mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-16 22:10:27 +00:00
fix tooltip not being removed. fix #156
This commit is contained in:
parent
6dabd7960e
commit
33af65eb45
1 changed files with 2 additions and 2 deletions
|
|
@ -59,11 +59,11 @@
|
|||
},
|
||||
methods: {
|
||||
removeTooltips() {
|
||||
const tooltips = [...document.querySelectorAll('.md-tooltip')];
|
||||
const tooltips = [...this.rootElement.querySelectorAll('.md-tooltip')];
|
||||
|
||||
tooltips.forEach((tooltip) => {
|
||||
if (tooltip.parentNode) {
|
||||
this.rootElement.removeChild(tooltip);
|
||||
tooltip.parentNode.removeChild(tooltip);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue