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:
parent
fa0a9166d1
commit
53828cda70
|
@ -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);
|
||||
|
|
Reference in New Issue