-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
qburst/react-datepicker-3
#53Description
Describe the bug
Given a DatePicker with props:
- showYearPicker
- selected={null}
Issues:
All years are highlighted when no selection is made. I'd expect none to be highlighted when no selection as when using showMonthYearPicker without init selection.
To Reproduce
https://stackblitz.com/edit/vitejs-vite-cyahbe6y?file=src%2FApp.tsx&terminal=dev
Expected behavior
No year is highlighted if selection is null.
Screenshots
This is a screenshot of 3 calendar instances in their init states with null selection. The year and month selections look different.
Desktop (please complete the following information):
- OS: macOS 15.4.1
- Browser Chrome
- Version 135.0.7049.115
joakimgunst
Metadata
Metadata
Assignees
Labels
No labels
