Posted 11 January 2021, 5:54 pm EST
Hi,
When I am binding functions to a single event in the c1-flex-grid-filter tag helper (e.g. filter-applied) I can simply add the name of the function:
<c1-flex-grid-filter default-filter-type="Both" filter-changing="filterChangingFunction"></c1-flex-grid-filter>
However when I attempt to add 2:
<c1-flex-grid-filter default-filter-type="Both" filter-changing="filterChangingFunction" filter-applied="filterAppliedFunction"></c1-flex-grid-filter>
I get the following error:
FastFilterAIP:289 Uncaught ReferenceError: filterChangingFunction is not defined
Interestingly the first one defined (in this case filterChangingFunction) actually works and is called when the even occurs, but the second one does not.
The solution I found is to wrap each one in a calling function, this seems to work, but I think its a bug:
<c1-flex-grid-filter default-filter-type="Both" filter-changing="function callFilterChanging(s,e){filterChangingFunction(s,e);}" filter-applied="function callFilterAppllied(s,e){filterAppliedFunction(s,e);}"></c1-flex-grid-filter>