mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-14 02:30:56 +01:00
Et2Date._inputNode can sometimes be just an input tag
This commit is contained in:
parent
a2b8ba300c
commit
2075bbe64c
@ -418,13 +418,16 @@ export class Et2Date extends Et2InputWidget(LitFlatpickr)
|
||||
super.update(changedProperties);
|
||||
|
||||
// Flatpickr puts some inputs we don't have direct control over
|
||||
if(changedProperties.has("disabled"))
|
||||
if(changedProperties.has("disabled") && this._inputNode)
|
||||
{
|
||||
this._inputNode.disabled = this.disabled;
|
||||
this._inputNode.requestUpdate("disabled");
|
||||
if(typeof this._inputNode.requestUpdate == "function")
|
||||
{
|
||||
this._inputNode?.requestUpdate("disabled");
|
||||
this._inputNode.shadowRoot.querySelectorAll("input").forEach(i => i.disabled = this.disabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Override parent to skip call to CDN
|
||||
|
Loading…
Reference in New Issue
Block a user