Joe Pea 2024-04-22 16:27:07 -04:00 zatwierdzone przez GitHub
commit c407a7f9f1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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;
}