Skip to content

Commit

Permalink
Fix bug in opacity handling (#7047)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Feb 1, 2020
1 parent 316f0e2 commit 26536f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/plugin.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ class Tooltip extends Element {
};

// IE11/Edge does not like very small opacities, so snap to 0
opacity = Math.abs(opacity < 1e-3) ? 0 : opacity;
opacity = Math.abs(opacity) < 1e-3 ? 0 : opacity;

// Truthy/falsey value for empty tooltip
var hasTooltipContent = me.title.length || me.beforeBody.length || me.body.length || me.afterBody.length || me.footer.length;
Expand Down

0 comments on commit 26536f8

Please sign in to comment.