From 88b2ce7b8efcaeb73148e25d380e94c5752d03a3 Mon Sep 17 00:00:00 2001 From: Ville Eriksson Date: Mon, 20 Jan 2025 13:47:55 +0200 Subject: [PATCH] fix(c-checkbox): Fix keyboard selection bug --- packages/csc-ui/src/components/c-checkbox/c-checkbox.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/csc-ui/src/components/c-checkbox/c-checkbox.tsx b/packages/csc-ui/src/components/c-checkbox/c-checkbox.tsx index f11e2815..e53fe037 100644 --- a/packages/csc-ui/src/components/c-checkbox/c-checkbox.tsx +++ b/packages/csc-ui/src/components/c-checkbox/c-checkbox.tsx @@ -2,7 +2,6 @@ import { Component, Host, h, - Listen, Prop, Event, EventEmitter, @@ -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;