-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
qburst/react-datepicker-3
#41Description
Describe the bug
When using a datepicker with both showWeekPicker
and showWeekNumbers
enabled, the week number buttons remain interactive (clickable) even if the corresponding weeks are disabled due to excludeDateIntervals
or filterDate
conditions (days are disabled). This leads to unexpected behavior where users can click on weeks that should not be accessible (week doesn't change, datepicker just closing). All week buttons have react-datepicker__week-number react-datepicker__week-number--clickable
class name.
To Reproduce
Steps to reproduce the behavior:
showWeekNumbers
showWeekPicker
excludeDateIntervals={[
{
start: moment().subtract(15, 'days').toDate(),
end: moment().subtract(1, 'days').toDate(),
},
]}
filterDate={isTimeInTheFuture}
Expected behavior
Week number buttons should be disabled.
Metadata
Metadata
Assignees
Labels
No labels