From 780b295c68d3ca7353cfba29588314a2a9c73fbe Mon Sep 17 00:00:00 2001 From: Dmitry Shovchko Date: Wed, 13 Nov 2024 20:07:46 +0200 Subject: [PATCH] fix(esl-tooltip): fix tooltip arrow disappearing --- src/modules/esl-tooltip/core/esl-tooltip.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/modules/esl-tooltip/core/esl-tooltip.ts b/src/modules/esl-tooltip/core/esl-tooltip.ts index fd19f44a9..e2e16f695 100644 --- a/src/modules/esl-tooltip/core/esl-tooltip.ts +++ b/src/modules/esl-tooltip/core/esl-tooltip.ts @@ -93,15 +93,10 @@ export class ESLTooltip extends ESLPopup { /** Actions to execute on show Tooltip. */ public override onShow(params: ESLTooltipActionParams): void { - if (params.disableArrow) { - this.disableArrow = params.disableArrow; - } - if (params.text) { - this.innerText = params.text; - } - if (params.html) { - this.innerHTML = params.html; - } + if (params.disableArrow) this.disableArrow = params.disableArrow; + if (params.text) this.innerText = params.text; + if (params.html) this.innerHTML = params.html; + if (params.text || params.html) memoize.clear(this, '$arrow'); this.dir = params.dir || ''; this.lang = params.lang || ''; this.parentNode !== document.body && document.body.appendChild(this);