fix(input-datepicker): fix race condition which breaks focus
This commit is contained in:
parent
9d9063bdfa
commit
72760cf0fe
1 changed files with 4 additions and 1 deletions
|
|
@ -306,7 +306,10 @@ export class LionInputDatepicker extends LionInputDate {
|
||||||
|
|
||||||
async __openCalendarOverlay() {
|
async __openCalendarOverlay() {
|
||||||
this._overlayCtrl.show();
|
this._overlayCtrl.show();
|
||||||
await this._calendarElement.updateComplete;
|
await Promise.all([
|
||||||
|
this._calendarOverlayElement.updateComplete,
|
||||||
|
this._calendarElement.updateComplete,
|
||||||
|
]);
|
||||||
this._onCalendarOverlayOpened();
|
this._onCalendarOverlayOpened();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue