iOS 9 doesn't support append (#4260)

This commit is contained in:
Bram Kragten 2019-11-21 17:03:35 +01:00 committed by GitHub
parent 0acd41b7f0
commit ea9e8cc392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -175,7 +175,7 @@ export class HaForm extends LitElement implements HaFormElement {
if (this._elementContainer!.lastChild) {
this._elementContainer!.removeChild(this._elementContainer!.lastChild);
}
this._elementContainer!.append(element);
this._elementContainer!.appendChild(element);
} else if (this._elementContainer && this._elementContainer.lastChild) {
const element = this._elementContainer!.lastChild as HaFormElement;
element.schema = this.schema;

View File

@ -663,7 +663,7 @@ class HUIRoot extends LitElement {
this.config.background
);
}
root.append(unusedEntities);
root.appendChild(unusedEntities);
return;
}
@ -698,7 +698,7 @@ class HUIRoot extends LitElement {
view.style.setProperty("--lovelace-background", configBackground);
}
root.append(view);
root.appendChild(view);
}
}

View File

@ -55,7 +55,7 @@ export class HUIPanelView extends UpdatingElement {
const card: LovelaceCard = createCardElement(this.config!.cards![0]);
card.hass = this.hass;
card.isPanel = true;
this.append(card);
this.appendChild(card);
}
}