Et2Date: Don't destroy flatpickr instance when disconnected

Calendar SidemenuDate gets moved by framework, causing disconnectCallback() to be called resulting in missing flatpickr instance
This commit is contained in:
nathan 2025-02-19 13:57:54 -07:00
parent 201451ba98
commit 4cfc855ac1

View File

@ -414,7 +414,6 @@ export class Et2Date extends Et2InputWidget(LitFlatpickr)
this._inputNode?.removeEventListener('change', this._onChange);
this.findInputField()?.removeEventListener("input", this._handleInputChange);
this._instance && this._instance.destroy();
this._boundTooltipElements.forEach(tooltipped =>
{
this.egw().tooltipUnbind(tooltipped)