I have created a searcher for a custom field with a selector in its template. Everything works fine when it's simple <select ..., but if I use <aui-select ... then when I click on X to remove criteria, it's still in JQL even despite that the chip with it was removed.
#<span>disable_html_escaping</span>()
$!{auiparams.<span>put</span>(<span>"controlHeaderClass"</span>, <span>"aui-field-text"</span>)}
#searcherEditHeader (${customField.<span>id</span>} ${customField.<span>name</span>})
<aui-select id=<span>"searcher-$customField.id"</span> name=<span>"$customField.id"</span> #<span>if</span> ($configs.<span>styles</span>.<span>style</span>) style=<span>"$configs.styles.style"</span>#end>
#<span>foreach</span>($department <span>in</span> $departments)
<aui-option value=<span>"$department.getGuid()"</span> #<span>if</span>($department.<span>getGuid</span>() == $value) selected #end>$department.<span>getName</span>()</aui-option>
#end
</aui-select>
#searcherEditFooter (${customField.<span>id</span>} ${customField.<span>descriptionProperty</span>.<span>viewHtml</span>})
$!{auiparams.<span>clear</span>()}I found that click on those X should call _removeCriteria function from CriteriaView.js but I'm not shure if it's really called. I tried to search a way how to verify it, but didn't manage to do it.