Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DateTime popup dont open automatically when triggered by icon #88

Open
maureliom opened this issue Feb 21, 2020 · 1 comment
Open

DateTime popup dont open automatically when triggered by icon #88

maureliom opened this issue Feb 21, 2020 · 1 comment

Comments

@maureliom
Copy link

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.

@bbortt
Copy link
Collaborator

bbortt commented Feb 24, 2020

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants