Small fixes

This commit is contained in:
Pieter Vander Vennet 2020-07-08 16:07:16 +02:00
parent f548ddea84
commit e3e6566c12
9 changed files with 91 additions and 42 deletions

View file

@ -74,9 +74,11 @@ export class UIRadioButton<T> extends UIInputElement<T> {
if (this.SelectedElementIndex.data == null) {
if (this._selectFirstAsDefault) {
const el = document.getElementById(this.IdFor(0));
// @ts-ignore
el.checked = true;
checkButtons();
if (el) {
// @ts-ignore
el.checked = true;
checkButtons();
}
}
} else {