frontend/js/controllers/flatpickr_controller.js in trestle-0.10.0 vs frontend/js/controllers/flatpickr_controller.js in trestle-0.10.1
- old
+ new
@@ -21,20 +21,20 @@
this.flatpickr.clear()
}
}
setup (selectedDates, dateStr, instance) {
- this._createClearButton(instance)
+ this.#createClearButton(instance)
}
get options () {
return {
allowInput: true,
altInput: true
}
}
- _createClearButton (instance) {
+ #createClearButton (instance) {
if (this.element.dataset.allowClear) {
const clearButton = document.createElement('button')
clearButton.classList.add('clear-datepicker')