Skip to content

Commit

Permalink
fix: Fix position style check
Browse files Browse the repository at this point in the history
  • Loading branch information
SadWood committed Apr 29, 2024
1 parent 697e798 commit 8e37a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/tooltip/TooltipHTMLContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ class TooltipHTMLContent {
const container = this._api.getDom();
const position = getComputedStyle(container, 'position');
const domStyle = container.style;
if (domStyle.position !== 'absolute' && position !== 'absolute') {
if (position !== 'absolute') {
domStyle.position = 'relative';
}
}
Expand Down

0 comments on commit 8e37a70

Please sign in to comment.