Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
Destroying tippy instance on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebriday committed Nov 10, 2020
1 parent 49d54c1 commit 9247bd2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9247bd2

Please sign in to comment.