AnsweredAssumed Answered

BUG: Not possible to remove filters in list view in Firefox browser

Question asked by Krunoslav Djakovic on Nov 20, 2017

When using Firefox browser it is not possible to remove selected filters from list view. You can see this in video: 2017-11-17_1838 

This happens because Sugar's HTML is using button and spans inside it and in Firefox button captures clicks and 'x' span can not get it. Wanted to offer solution to anyone that got into same situation:

Add custom/clients/base/views/filter-filter-dropdown/filter-filter-dropdown.hbs with copied content from clients/base/views/filter-filter-dropdown/filter-filter-dropdown.hbs and just change button tags with div tags:

<input type="hidden" class="select2 search-filter" data-placeholder='{{str labelDropdownTitle}}'>
<div type="button" class="choice-filter" tabindex="0" aria-label="{{str 'LBL_FILTER_CREATE_FILTER'}}">
    <span class="choice-filter-label"></span>
    <span class="choice-filter-close"><i class="fa fa-times-circle"></i></span>