forked from MapComplete/MapComplete
Merge and bugfixes
This commit is contained in:
commit
c3664ce82f
9 changed files with 87 additions and 44 deletions
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue