Closed hdijkema closed 7 months ago
Sorry, I see now that I need to check the 'visible' property before trying to hide the calendar widget.
let options = {
locale: AirDatepickerLocale.get(language()),
//autoClose: true,
onSelect: function() {
if (this.changing) {
this.changing = false;
return;
}
if (this._pickr.visible) {
this._pickr.hide();
}
this.onSelect(); }.bind(this),
toggleSelected: false
};
So, this is no bug.
Could it be that 'this.nav.destroy()' should be 'this.$nav.destroy()' in this piece of code?