Skip to content

Commit c9cb907

Browse files
fix: parse data-tooltip-float correctly
1 parent 2338bd5 commit c9cb907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TooltipController/TooltipController.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const TooltipController = ({
106106
setTooltipDelayHide(value === null ? delayHide : Number(value))
107107
},
108108
float: (value) => {
109-
setTooltipFloat(value === null ? float : Boolean(value))
109+
setTooltipFloat(value === null ? float : value === 'true')
110110
},
111111
}
112112
// reset unset data attributes to default values

0 commit comments

Comments
 (0)