diff --git a/packages/bits-ui/src/lib/bits/accordion/state.svelte.ts b/packages/bits-ui/src/lib/bits/accordion/state.svelte.ts index 0c6188f7c..9fcdfff96 100644 --- a/packages/bits-ui/src/lib/bits/accordion/state.svelte.ts +++ b/packages/bits-ui/src/lib/bits/accordion/state.svelte.ts @@ -225,7 +225,7 @@ class AccordionTriggerState { e.preventDefault(); - if ([kbd.SPACE, kbd.ENTER].includes(e.key)) { + if (e.key === kbd.SPACE || e.key === kbd.ENTER) { this.itemState.updateValue(); return; }