includedDates would always disable excludedDates due to empty array (#3112)
This commit is contained in:
@@ -61,7 +61,7 @@ export const Day = ({
|
||||
const Days = ({
|
||||
minDate,
|
||||
excludedDates = [],
|
||||
includedDates = [],
|
||||
includedDates,
|
||||
browsingDate,
|
||||
weekStart,
|
||||
DayComponent = Day,
|
||||
@@ -96,7 +96,7 @@ const Days = ({
|
||||
date={day}
|
||||
onClick={() => props.onChange(day)}
|
||||
disabled={
|
||||
!includedDates.includes(yyyymmdd(day)) ||
|
||||
(includedDates && !includedDates.includes(yyyymmdd(day))) ||
|
||||
excludedDates.includes(yyyymmdd(day)) ||
|
||||
day.valueOf() < minDateValueOf
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user