angular-elastic-builder icon indicating copy to clipboard operation
angular-elastic-builder copied to clipboard

filter can not be applied

Open Sydney-Hawkesbury opened this issue 9 years ago • 0 comments

setting $scope.elasticQueryBuilder.query and $scope.elasticQueryBuilder.needsUpdate = true does not work.

I changed file dist/angular-elastic-builder.js, line 478 from

prev[choice] = truthy === (~group[key][obj.field].indexOf(choice));

to

prev[choice] = truthy === (group[key][obj.field].indexOf(choice) >= 0);

to fix it.

Sydney-Hawkesbury avatar Aug 08 '16 07:08 Sydney-Hawkesbury