Skip to content

Commit

Permalink
tooltips delay and show fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gengar-i committed Oct 6, 2023
1 parent 0dcba4c commit e6a3d80
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,10 @@
}
}

const { delayShow, delayHide } = tooltipNode.dataset;
const delay = {
show: parseInt(tooltipNode.dataset.delayShow, 10) ?? 150,
hide: parseInt(tooltipNode.dataset.delayHide, 10) ?? 75,
show: delayShow ? parseInt(delayShow, 10) : 150,
hide: delayHide ? parseInt(delayHide, 10) : 75,
};
const extraClass = tooltipNode.dataset.tooltipExtraClass ?? '';
const placement = tooltipNode.dataset.tooltipPlacement ?? 'bottom';
Expand Down

0 comments on commit e6a3d80

Please # to comment.