Skip to content

Commit

Permalink
fix(esl-tooltip): fix tooltip arrow disappearing
Browse files Browse the repository at this point in the history
  • Loading branch information
dshovchko committed Nov 13, 2024
1 parent daeb266 commit 780b295
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 780b295

Please sign in to comment.