Skip to content

Commit

Permalink
Merge pull request #2765 from exadel-inc/fix/tooltip-arrow-disappearing
Browse files Browse the repository at this point in the history
fix(esl-tooltip): fix tooltip arrow disappearing
  • Loading branch information
ala-n authored Nov 14, 2024
2 parents 6b96525 + 780b295 commit ae7cb30
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/modules/esl-tooltip/core/esl-tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae7cb30

Please sign in to comment.