mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Et2Date: Fire change event when a new date is selected
Fixes nm date filters not filtering
This commit is contained in:
parent
328c8224cb
commit
0b15ede568
@ -691,7 +691,8 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(LitFlatpickr))
|
|||||||
{
|
{
|
||||||
// Update the et2-textbox so it will fail a required validation check
|
// Update the et2-textbox so it will fail a required validation check
|
||||||
this._inputNode.value = '';
|
this._inputNode.value = '';
|
||||||
return this._instance.clear();
|
this._instance.clear();
|
||||||
|
this.dispatchEvent(new Event("change", {bubbles: true}));
|
||||||
}
|
}
|
||||||
let parsedDate = null
|
let parsedDate = null
|
||||||
try
|
try
|
||||||
@ -716,6 +717,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(LitFlatpickr))
|
|||||||
this._inputNode.value = formattedDate;
|
this._inputNode.value = formattedDate;
|
||||||
(<Et2Textbox>this._inputNode).validate();
|
(<Et2Textbox>this._inputNode).validate();
|
||||||
}
|
}
|
||||||
|
this.dispatchEvent(new Event("change", {bubbles: true}));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user