diff --git a/src/index.js b/src/index.js index c14c5a9..98260c4 100644 --- a/src/index.js +++ b/src/index.js @@ -8,6 +8,12 @@ export default class extends Controller { this.fetch = this.fetch.bind(this) } + disconnect () { + if (this.tippyInstance) { + this.tippyInstance.destroy() + } + } + async mouseOver (event) { let element = null let content = null