-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Describe/explain the bug
When using Calendar or TimeRange, you can provide a valueFormat function:
(v: number) => string;In CalendarTooltip.tsx, value is assumed to always be a number:
| if (value === undefined || isNaN(Number(value))) return null |
This will return null when using a valueFormat function because it returns a string, not a number, which fails to show a tooltip.
To Reproduce
https://codesandbox.io/p/sandbox/mystifying-dhawan-4qhh8x
Steps to reproduce the behavior:
- Go to csb
- Hover or try to click on time range day
- Observe no tooltip is shown
Expected behavior
A tooltip should be shown
Workaround
Copy original tooltip and make your own without the isNaN check
Metadata
Metadata
Assignees
Labels
No labels