Skip to content

Commit efbe320

Browse files
committed
fix isFilterActive for splitText
1 parent 365f82b commit efbe320

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Signum.React/Scripts/SearchControl/FilterBuilder.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,13 @@ export function FilterGroupComponent(p: FilterGroupComponentsProps) {
394394
}
395395

396396
function isFilterActive(fo: FilterOptionParsed) {
397-
return fo.pinned == null ||
398-
fo.pinned.active == null /*Always*/ ||
397+
if (fo.pinned == null)
398+
return true;
399+
400+
if (fo.pinned.splitText && (fo.value == null || fo.value == ""))
401+
return false;
402+
403+
return fo.pinned.active == null /*Always*/ ||
399404
fo.pinned.active == "Always" ||
400405
fo.pinned.active == "Checkbox_StartChecked" ||
401406
fo.pinned.active == "WhenHasValue" && !(fo.value == null || fo.value == "");

0 commit comments

Comments
 (0)