mat-datetimepicker
mat-datetimepicker copied to clipboard
DateTime popup dont open automatically when triggered by icon
The error: { TypeError: Cannot read property '_focusActiveCell' of undefined } is thrown when trying to popup calendar date/time by icon, but when the input field is clicked many times the popup shows up, this happens even when outside *ngif tag, code below follows as template/example model:
<mat-form-field *ngIf="boolean" fxFlex>
<mat-label>Choose Date/Time</mat-label>
<input matInput formControlName="dt_to_pick" [matDatetimepicker]="dt_to_pick"
required>
<mat-datetimepicker-toggle matSuffix [for]="dt_to_pick"></mat-datetimepicker-toggle>
<mat-datetimepicker #dt_to_pick type="datetime" openOnFocus="true" timeInterval="5"></mat-datetimepicker>
</mat-form-field>
An yarn add @mat-datetimepicker/core was made on 21/02/2020 to try on the most recent version from repository, but the error still persists.
Which exact version are you using? And do you have any code in order to reproduce the problem? I am generally not doing anything except testing/accepting pull-requests in this repository. Just got the contributor role because the maintainer was inactive for a long time.