vue-airbnb-style-datepicker
vue-airbnb-style-datepicker copied to clipboard
Disable all dates with an empty array for enabledDates
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.
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.