Skip to content

Commit

Permalink
add check before removal
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Jan 12, 2022
1 parent 2f569fa commit 0033232
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/src/tooltip.js
Expand Up @@ -220,7 +220,11 @@ class Tooltip extends BaseComponent {
return
}

this.tip.remove() // todo v6 remove this OR make it optional
// todo v6 remove this OR make it optional
if (this.tip) {
this.tip.remove()
}

const tip = this._getTipElement()

this._element.setAttribute('aria-describedby', tip.getAttribute('id'))
Expand Down

0 comments on commit 0033232

Please sign in to comment.