Skip to content

Commit

Permalink
[Issue Tracker] Fix for checkbox problem (#8853)
Browse files Browse the repository at this point in the history
Fix the issue with checkbox when unchecked (filtering happened for listing all entries where the condition is false instead of just removing the filter).

Resolves  #6985
  • Loading branch information
sanjay-thiyagarajan authored Aug 10, 2023
1 parent faa7472 commit 6041759
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsx/Filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ function Filter(props) {
const exactMatch = (!(type === 'text' || type === 'date'));

if (value === null || value === '' ||
(value.constructor === Array && value.length === 0)) {
(value.constructor === Array && value.length === 0) ||
(type === 'checkbox' && value === false)) {
props.removeFilter(name);
} else {
props.addFilter(name, value, exactMatch);
Expand Down

0 comments on commit 6041759

Please sign in to comment.