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.
This commit is contained in:
Ken Sternberg 2023-08-07 08:46:02 -07:00
parent fa0a9166d1
commit 53828cda70
1 changed files with 0 additions and 3 deletions

View File

@ -73,9 +73,6 @@ export class Radio<T> 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);