[FIX] web: search bar: no button role for comparison facet label
The label of a facet of type "comparison" had the role "button" while click on it has no effect. That role should be reserved for the label of a facet that is associated with a domain (e.g. a facet of type "filter"). X-original-commit: 4c649abf491b32c218769b0bb1eba19881dedbb0 Part-of: odoo/odoo#126496
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
>
|
||||
<div class="o_searchview_facet_label rounded-start-2"
|
||||
t-on-click="(ev) => this.onFacetLabelClick(ev.target, facet)"
|
||||
t-att-role="facet.type != 'groupBy' ? 'button' : 'img'"
|
||||
t-att-role="facet.domain ? 'button' : 'img'"
|
||||
t-att-class="{
|
||||
'text-bg-action d-flex align-items-center': facet.type == 'groupBy',
|
||||
'btn btn-primary rounded-end-0 p-0': facet.type == 'field' || facet.type == 'filter',
|
||||
|
||||
Reference in New Issue
Block a user