Skip to content

Commit

Permalink
fix(c-checkbox): Fix keyboard selection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
villeerikssoncsc committed Jan 20, 2025
1 parent 5ddf041 commit 88b2ce7
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 88b2ce7

Please sign in to comment.