Skip to content

Commit 72760cf

Browse files
author
Mikhail Bashkirov
committed
fix(input-datepicker): fix race condition which breaks focus
1 parent 9d9063b commit 72760cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/input-datepicker/src/LionInputDatepicker.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,10 @@ export class LionInputDatepicker extends LionInputDate {
306306

307307
async __openCalendarOverlay() {
308308
this._overlayCtrl.show();
309-
await this._calendarElement.updateComplete;
309+
await Promise.all([
310+
this._calendarOverlayElement.updateComplete,
311+
this._calendarElement.updateComplete,
312+
]);
310313
this._onCalendarOverlayOpened();
311314
}
312315

0 commit comments

Comments
 (0)