Skip to content

Commit 97be89a

Browse files
author
Luis Lebolo
committed
fix(core): Do not clear condition when clearing all filters
When a user clicks the grid menu's "clear all filters", do not remove the filter's 9possibly custom) `condition`. Fixes #4657
1 parent 68681d7 commit 97be89a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/core/directives/ui-grid-menu-button.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ angular.module('ui.grid')
193193
var clearFilters = [{
194194
title: i18nService.getSafeText('gridMenu.clearAllFilters'),
195195
action: function ($event) {
196-
$scope.grid.clearAllFilters(undefined, true, undefined);
196+
$scope.grid.clearAllFilters();
197197
},
198198
shown: function() {
199199
return $scope.grid.options.enableFiltering;

0 commit comments

Comments
 (0)