From 60417590e1634cffe097ab9103ce09ad9689177a Mon Sep 17 00:00:00 2001 From: Sanjay Thiyagarajan Date: Thu, 10 Aug 2023 21:08:34 +0530 Subject: [PATCH] [Issue Tracker] Fix for checkbox problem (#8853) 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 --- jsx/Filter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jsx/Filter.js b/jsx/Filter.js index ed5f960b3fc..e046aa39c75 100644 --- a/jsx/Filter.js +++ b/jsx/Filter.js @@ -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);