Skip to content

Commit 9092c8f

Browse files
committed
[bug] Fix BasicBehaviors example
1 parent ef0587e commit 9092c8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/src/examples/BasicBehaviorsExample.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function reducer(state: State, { checked, name }: Action) {
4040
case 'open':
4141
return {
4242
...state,
43-
[name]: checked ?? undefined,
43+
[name]: checked || undefined,
4444
};
4545
default:
4646
return {
@@ -77,7 +77,7 @@ function getCheckboxes({
7777
label: 'Highlight the only result',
7878
name: 'highlightOnlyResult',
7979
},
80-
{ checked: !!open, label: 'Force the menu to stay open', name: 'open' },
80+
{ checked: open, label: 'Force the menu to stay open', name: 'open' },
8181
];
8282
}
8383

0 commit comments

Comments
 (0)