vue-airbnb-style-datepicker icon indicating copy to clipboard operation
vue-airbnb-style-datepicker copied to clipboard

Disable all dates with an empty array for enabledDates

Open diakonovm opened this issue 4 years ago • 0 comments

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.

diakonovm avatar May 13 '20 16:05 diakonovm