Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Apr 12, 2024
1 parent 32b0ea4 commit b3c3394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bits-ui/src/lib/bits/accordion/state.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b3c3394

Please sign in to comment.