Fix Cancel button behavior on TopFilterAndSort bar (#106)
This commit is contained in:
@@ -157,6 +157,12 @@ function TableHeader<SortField, FilterProperties>({
|
||||
filters={filters}
|
||||
onRemoveSort={sortUnselect}
|
||||
onRemoveFilter={filterUnselect}
|
||||
onCancelClick={() => {
|
||||
innerSetFilters([]);
|
||||
onFiltersUpdate && onFiltersUpdate([]);
|
||||
innerSetSorts([]);
|
||||
onSortsUpdate && onSortsUpdate([]);
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</StyledContainer>
|
||||
|
||||
Reference in New Issue
Block a user