react-bootstrap-datetimepicker icon indicating copy to clipboard operation
react-bootstrap-datetimepicker copied to clipboard

daysOfWeekDisabled for single day use not working properly

Open achucuan opened this issue 10 years ago • 0 comments

Found a wired 'feature' that it's causing the daysOfWeekDisabled to not accepting specific day

For example

// This guy disables Saturday but 3,4 and 5 are ignored
<DateTimeField daysOfWeekDisabled={[3,4,5,6]} /> 
<DateTimeField daysOfWeekDisabled={[4,5,6]} /> // doesn't work
<DateTimeField daysOfWeekDisabled={[5,6]} /> // doesn't work
<DateTimeField daysOfWeekDisabled={[6]} /> // doesn't work

So basically what I'm trying to do is disable Saturdays only. Best,

achucuan avatar Aug 12 '15 00:08 achucuan