fix(hydrate): check for client runtime method (#18866)

This commit is contained in:
Adam Bradley
2019-07-23 16:11:29 -05:00
committed by GitHub
parent 23ce6fae9e
commit c52b3b4997

View File

@ -225,13 +225,15 @@ export class StackController {
containerEl.appendChild(enteringEl);
}
return containerEl.commit(enteringEl, leavingEl, {
deepWait: true,
duration: direction === undefined ? 0 : undefined,
direction,
showGoBack,
progressAnimation
});
if ((containerEl as any).commit) {
return containerEl.commit(enteringEl, leavingEl, {
deepWait: true,
duration: direction === undefined ? 0 : undefined,
direction,
showGoBack,
progressAnimation
});
}
}
return Promise.resolve(false);
}