Skip to content

Commit 2d6d48e

Browse files
committed
fix losing focusing when pressing Page Down
1 parent b20f689 commit 2d6d48e

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/material/datepicker/month-view.ts

+1
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ export class MatMonthView<D> implements AfterContentInit, OnChanges, OnDestroy {
342342
this.activeDateChange.emit(this.activeDate);
343343
}
344344

345+
this._focusActiveCell();
345346
// Prevent unexpected default actions such as form submission.
346347
event.preventDefault();
347348
}

src/material/datepicker/multi-year-view.ts

+1
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ export class MatMultiYearView<D> implements AfterContentInit, OnDestroy {
293293
this.activeDateChange.emit(this.activeDate);
294294
}
295295

296+
this._focusActiveCell();
296297
// Prevent unexpected default actions such as form submission.
297298
event.preventDefault();
298299
}

src/material/datepicker/year-view.ts

+1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ export class MatYearView<D> implements AfterContentInit, OnDestroy {
280280
this.activeDateChange.emit(this.activeDate);
281281
}
282282

283+
this._focusActiveCell();
283284
// Prevent unexpected default actions such as form submission.
284285
event.preventDefault();
285286
}

0 commit comments

Comments
 (0)