Move the apply button's function to the value dropdown list in the Group Filter widget?

Discussion created by gregord on Sep 3, 2020

I'm trying to minimalize this widget totally, but i feel it's not possible to easily add an event listener what fires the the apply button's function (click:setFilterLayerDef). Maybe i'm missing an easy solution.  I'm looking at the js code for hours... 

just for presentation purpose:

    <div class="container" data-dojo-attach-point="filterBlock" data-dojo-attach-event="change:setFilterLayerDef" id="filterBlock">
        <div class="filter-block" data-dojo-attach-point="filterBlockInner" id="filterBlockInner">
            <table id="tblPredicates" class="tableFormat" border=0 cellspacing="0" cellpadding="0"></table>