Skip to content

Commit f8e99df

Browse files
gabrieljablonskidanielbarion
authored andcommitted
fix html data attribute handler
1 parent 9fae9e3 commit f8e99df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/TooltipController/TooltipController.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ const TooltipController = ({
6868
setTooltipContent(value ?? content)
6969
},
7070
html: (value) => {
71-
setIsHtmlContent(true)
72-
setTooltipContent(value ?? html)
71+
setIsHtmlContent(!!value)
72+
setTooltipContent(value ?? html ?? content)
7373
},
7474
variant: (value) => {
7575
setTooltipVariant((value as VariantType) ?? variant)

0 commit comments

Comments
 (0)