Skip to content

Commit

Permalink
Merge pull request #188 from CSCfi/fix-checkbox-keyboard
Browse files Browse the repository at this point in the history
fix(c-checkbox): Fix keyboard selection bug
  • Loading branch information
razorfever authored Jan 20, 2025
2 parents 5ddf041 + 88b2ce7 commit 3255b91
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/csc-ui/src/components/c-checkbox/c-checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
Component,
Host,
h,
Listen,
Prop,
Event,
EventEmitter,
Expand Down Expand Up @@ -124,14 +123,6 @@ export class CCheckbox {
);
}

@Listen('keydown', { passive: true })
handleKeyDown(event: KeyboardEvent) {
if (['Space'].includes(event.code)) {
event.preventDefault();
this._toggleState(event);
}
}

componentWillLoad() {
CCheckbox._uniqueId += 1;

Expand Down

0 comments on commit 3255b91

Please sign in to comment.