Get flatpickr popup working along with LionDialog

This commit is contained in:
nathan 2022-10-05 16:22:32 -06:00
parent ec388c955a
commit 0a745299ce

View File

@ -432,6 +432,12 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
// Listen for flatpickr change so we can update internal value, needed for validation
options.onChange = options.onReady = this._updateValueOnChange;
// Remove Lion's inert attribute so we can work in Et2Dialog
options.onOpen = [() =>
{
this._instance.calendarContainer.removeAttribute("inert")
}];
return options;
}