fix(angular): only append the component when the parent element is not the container element

Closes #14737
This commit is contained in:
mhartington
2018-09-11 11:55:06 -04:00
parent 37c9be7453
commit 6d6f70ce09

View File

@ -107,7 +107,9 @@ export class StackController {
const containerEl = this.containerEl;
if (enteringEl && enteringEl !== leavingEl) {
enteringEl.classList.add('ion-page', 'ion-page-invisible');
containerEl.appendChild(enteringEl);
if (enteringEl.parentElement !== containerEl) {
containerEl.appendChild(enteringEl);
}
await containerEl.componentOnReady();
await containerEl.commit(enteringEl, leavingEl, {