We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d38be0f commit 1468f78Copy full SHA for 1468f78
src/Tooltip.js
@@ -115,11 +115,11 @@ class Tooltip {
115
this.#createTooltip()
116
}
117
118
- if (hasContainerClassNameChanged) {
+ if (hasContainerClassNameChanged || hasContentChanged) {
119
this.#tooltip.classList.add(this.#containerClassName || '__tooltip')
120
121
122
- if (hasPositionChanged) {
+ if (hasPositionChanged || hasContainerClassNameChanged || hasContentChanged) {
123
this.#tooltip.classList.remove(`__tooltip-${oldPosition}`)
124
this.#tooltip.classList.add(`__tooltip-${this.#position}`)
125
0 commit comments