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 31, 2022
1 parent e3d1fa9 commit 4692454
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/src/tooltip.js
Expand Up @@ -222,7 +222,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 4692454

Please sign in to comment.