feat: properly destroy objects on disconnect from dom
This commit is contained in:
1 parent
2655b83242
commit
69abf8d49a
4 files changed
+26
-9
No files matched your search
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user