0
votes

Is it possible to implement the Angular 2/4/5 Material datepicker in a way to have it open on focus of the input field that will also work in IE 11?

Here's an example which works in every browser except IE 11.

1

1 Answers

0
votes

use md2 and just set [openOnFocus]=true

for example

  <md2-datepicker [(ngModel)]="customStartDate"
                                        [placeholder]="'Start Date'"
                                        [mode]="'portrait'"
                                        [max]="today"
                                        [format]="'y-MM-dd'"
                                        class="pr-3"
                                        [openOnFocus]=true>
                        </md2-datepicker>