From 53828cda705912fb91520a4f2ae62a278384b1e7 Mon Sep 17 00:00:00 2001 From: Ken Sternberg Date: Mon, 7 Aug 2023 08:46:02 -0700 Subject: [PATCH] Fixed behavioral problem with the radio; the `if` there was preventing the radio from reflecting the default correctly. The observed behavior was that the radio wouldn't "activate" until the item selected during the render pass was clicked on first. --- web/src/elements/forms/Radio.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/src/elements/forms/Radio.ts b/web/src/elements/forms/Radio.ts index ef2255d94..3d82ca4cb 100644 --- a/web/src/elements/forms/Radio.ts +++ b/web/src/elements/forms/Radio.ts @@ -73,9 +73,6 @@ export class Radio extends CustomEmitterElement(AKElement) { // value. We'll do that ourselves. ev.stopPropagation(); ev.preventDefault(); - if (this.value === option.value) { - return; - } this.value = option.value; this.dispatchCustomEvent("change", option.value); this.dispatchCustomEvent("input", option.value);