kopia lustrzana https://github.com/shoelace-style/shoelace
Merge d028cef2c2
into 3ad6364678
commit
c407a7f9f1
|
@ -129,11 +129,11 @@ export default class SlRadioGroup extends ShoelaceElement implements ShoelaceFor
|
|||
}
|
||||
|
||||
private handleRadioClick(event: MouseEvent) {
|
||||
const target = (event.target as HTMLElement).closest<SlRadio | SlRadioButton>('sl-radio, sl-radio-button')!;
|
||||
const target = event.target.closest<SlRadio | SlRadioButton>('sl-radio, sl-radio-button')!;
|
||||
const radios = this.getAllRadios();
|
||||
const oldValue = this.value;
|
||||
|
||||
if (target.disabled) {
|
||||
if (!target || target.disabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue