Open diakonovm opened 4 years ago
If I pass an empty array to the enabledDates prop, the expected behavior would be that all dates are disabled. Yet, an empty array doesn't disable any dates.
enabledDates
isDateDisabled(date) { if (this.enabledDates.length > 0) { return this.enabledDates.indexOf(date) === -1 } else { return this.disabledDates.indexOf(date) > -1 } }
The functionality of the above method needs to be reconsidered.
If I pass an empty array to the
enabledDates
prop, the expected behavior would be that all dates are disabled. Yet, an empty array doesn't disable any dates.The functionality of the above method needs to be reconsidered.