mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
iOS 9 doesn't support append (#4260)
This commit is contained in:
parent
0acd41b7f0
commit
ea9e8cc392
@ -175,7 +175,7 @@ export class HaForm extends LitElement implements HaFormElement {
|
|||||||
if (this._elementContainer!.lastChild) {
|
if (this._elementContainer!.lastChild) {
|
||||||
this._elementContainer!.removeChild(this._elementContainer!.lastChild);
|
this._elementContainer!.removeChild(this._elementContainer!.lastChild);
|
||||||
}
|
}
|
||||||
this._elementContainer!.append(element);
|
this._elementContainer!.appendChild(element);
|
||||||
} else if (this._elementContainer && this._elementContainer.lastChild) {
|
} else if (this._elementContainer && this._elementContainer.lastChild) {
|
||||||
const element = this._elementContainer!.lastChild as HaFormElement;
|
const element = this._elementContainer!.lastChild as HaFormElement;
|
||||||
element.schema = this.schema;
|
element.schema = this.schema;
|
||||||
|
@ -663,7 +663,7 @@ class HUIRoot extends LitElement {
|
|||||||
this.config.background
|
this.config.background
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
root.append(unusedEntities);
|
root.appendChild(unusedEntities);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -698,7 +698,7 @@ class HUIRoot extends LitElement {
|
|||||||
view.style.setProperty("--lovelace-background", configBackground);
|
view.style.setProperty("--lovelace-background", configBackground);
|
||||||
}
|
}
|
||||||
|
|
||||||
root.append(view);
|
root.appendChild(view);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ export class HUIPanelView extends UpdatingElement {
|
|||||||
const card: LovelaceCard = createCardElement(this.config!.cards![0]);
|
const card: LovelaceCard = createCardElement(this.config!.cards![0]);
|
||||||
card.hass = this.hass;
|
card.hass = this.hass;
|
||||||
card.isPanel = true;
|
card.isPanel = true;
|
||||||
this.append(card);
|
this.appendChild(card);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user