ui: render dash for mixed-state group checkboxes

The accessor refactor dropped the checked-and-not-indeterminate
guard, so the category-on flag won and the dash never showed. The
tooltip keeps using the raw parent flag since clicking a mixed
group still disables it.

Assisted-by: pi
This commit is contained in:
Aleksander Grygier
2026-08-27 10:18:01 +02:00
committed by GitHub
parent dc2dd9913c
commit cf39a070ad
2 changed files with 2 additions and 2 deletions
@@ -276,7 +276,7 @@
</span>
<Checkbox
checked={checkState.checked}
checked={checkState.checked && !checkState.indeterminate}
class="{ICON_CLASS_DEFAULT} shrink-0"
indeterminate={checkState.indeterminate}
onCheckedChange={() => toolsPanel.toggleGroupByKey(group.key)}
@@ -120,7 +120,7 @@
{#snippet child({ props })}
<Checkbox
{...props}
checked={checkState.checked}
checked={checkState.checked && !checkState.indeterminate}
class="mr-2 {ICON_CLASS_DEFAULT} shrink-0"
indeterminate={checkState.indeterminate}
onCheckedChange={() => toolsPanel.toggleGroupByKey(group.key)}