Open ancuriskey2000 opened 2 years ago
If I'm doing it correctly, the disabled dates should be rerendered.
"Uncaught TypeError: this.setDatesDisabled is not a function" error is shown on Chrome Console.
Datepicker for Bootstrap v1.9.0
$(self.template.querySelector('.datepicker')).datepicker({ format: 'dd/mm/yyyy', startDate: new Date(), endDate: finalDate, datesDisabled: disabledDates, ignoreReadonly: true }).on('show', function (selected) { self.setDatesDisabled(['10/04/2022']) }).on('changeDate', function (selected) { self.selectedDate = selected.target.value; let dateval = self.selectedDate; const selectedEvent = new CustomEvent("datechange", { detail: dateval }); self.dispatchEvent(selectedEvent); });
Expected behaviour
If I'm doing it correctly, the disabled dates should be rerendered.
Actual behaviour
"Uncaught TypeError: this.setDatesDisabled is not a function" error is shown on Chrome Console.
Datepicker version used
Datepicker for Bootstrap v1.9.0
Example code