feat: properly destroy objects on disconnect from dom

This commit is contained in:
Björn Fromme
2025-02-11 08:16:30 +01:00
parent 2655b83242
commit 69abf8d49a
4 changed files with 26 additions and 9 deletions
+5 -1
View File
@@ -31,6 +31,10 @@ export default class extends Controller {
} else {
element = this.element
}
tippy(element, options)
this.tooltip = tippy(element, options)
}
disconnect() {
this.tooltip.destroy()
}
}