Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
emiliosalazardonate opened this issue Jul 25, 2024 · 0 comments
Open

Comments

@emiliosalazardonate
Copy link

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?

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

No branches or pull requests

1 participant