Skip to content

The enter key is not working in my ngx-mat-datetime-picker #397

@emiliosalazardonate

Description

@emiliosalazardonate

Hi.
I have this code:

           <mat-form-field>
            <input matInput [ngxMatDatetimePicker]="picker" placeholder="Choose a date" [(ngModel)]="imagesDateCalendar" />
            <ngx-mat-datepicker-toggle matSuffix [for]="picker"></ngx-mat-datepicker-toggle>
            <ngx-mat-datetime-picker #picker>
              <ngx-mat-datepicker-actions>
                <button   ngxMatDatepickerApply>
                  <mat-icon>done</mat-icon>
                </button>
              </ngx-mat-datepicker-actions>
            </ngx-mat-datetime-picker>
          </mat-form-field>

It works fine when I click the button, but I would like to also use the "enter" key. Any help with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions