Dear Developers,
In version 19.1 I had some “onchange” events triggered from the etemplate .xet file, for example
<description value="από" />
<date id="date_from" onchange="app.acreports.changeDate" />
<description value="εώς" />
<date id="date_to" onchange="app.acreports.changeDate" />
Then in js, I had something similar to:
changeDate( _event, _widget ) {
// Reset dates filter
if ( _widget.get_value() ) {
this.et2.getWidgetById(‘nm’).activeFilters.date_selectbox = 0;
this.et2.getWidgetById(‘nm’).activeFilters[ _widget.id ] = _widget.get_value();
this.et2.getWidgetById(‘nm’).applyFilters();
}
}
with the second parameter (_widget) etemplate was providing the widget object that triggered the onchange event.
This was working in version 19.1, but now is seems broken, I am getting an object but its not the widget.
Could someone test this?
Thank you in advance for your support!
Greetings
Alex