From 585648ac4cd13b901d2a7e616c7ff6c3117dc5fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sat, 11 Dec 2021 08:30:35 +0100 Subject: [PATCH] Revert "handle ha-radio and ha-checkbox in ha-formfield" (#10863) --- src/components/ha-formfield.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/components/ha-formfield.ts b/src/components/ha-formfield.ts index 8a1e60e480..e0452e0db7 100644 --- a/src/components/ha-formfield.ts +++ b/src/components/ha-formfield.ts @@ -5,22 +5,6 @@ import { customElement } from "lit/decorators"; @customElement("ha-formfield") // @ts-expect-error export class HaFormfield extends Formfield { - protected _labelClick() { - const input = this.input; - if (input) { - input.focus(); - switch (input.tagName) { - case "HA-CHECKBOX": - case "HA-RADIO": - (input as any).checked = !(input as any).checked; - break; - default: - input.click(); - break; - } - } - } - protected static get styles(): CSSResultGroup { return [ Formfield.styles,