feat: properly destroy objects on disconnect from dom

This commit is contained in:
Björn Fromme committed 2025-02-11 08:16:30 +01:00
1 parent 2655b83242
commit 69abf8d49a
4 files changed
+26 -9

No files matched your search

+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()
}
}