fix(input-datepicker): fix race condition which breaks focus

This commit is contained in:
Mikhail Bashkirov 2019-05-27 16:30:22 +02:00
parent 9d9063bdfa
commit 72760cf0fe

View file

@ -306,7 +306,10 @@ export class LionInputDatepicker extends LionInputDate {
async __openCalendarOverlay() {
this._overlayCtrl.show();
await this._calendarElement.updateComplete;
await Promise.all([
this._calendarOverlayElement.updateComplete,
this._calendarElement.updateComplete,
]);
this._onCalendarOverlayOpened();
}