Skip to content

Commit

Permalink
fix(Tooltip): ensure that tooltip also accepts zero delay
Browse files Browse the repository at this point in the history
  • Loading branch information
sjschlapbach committed Jul 16, 2024
1 parent f7cb3ac commit 6ab8a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function Tooltip({
}: TooltipProps): React.ReactElement {
return (
<RadixTooltip.Provider>
<RadixTooltip.Root delayDuration={delay || 1000}>
<RadixTooltip.Root delayDuration={delay ?? 1000}>
<RadixTooltip.Trigger
tabIndex={-1}
id={id}
Expand Down

0 comments on commit 6ab8a6d

Please sign in to comment.