We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdbf875 commit 8575f9fCopy full SHA for 8575f9f
1 file changed
packages/components/src/HierarchicalCheckboxMenu.tsx
@@ -9,7 +9,7 @@ import Button from './Button';
9
10
export type HierarchicalCheckboxValueMap = Map<
11
string,
12
- boolean | Map<string, boolean>
+ boolean | HierarchicalCheckboxValueMap
13
>;
14
15
type HierarchicalCheckboxMenuProps = {
@@ -199,7 +199,7 @@ class HierarchicalCheckboxMenu extends Component<
199
<Checkbox
200
className="hcm-child"
201
key={child}
202
- checked={value}
+ checked={typeof value === 'boolean' ? value : null}
203
onChange={() => this.toggleValueFor(parent, child)}
204
>
205
{child}
0 commit comments