【问题标题】:ngbdatepicker and ie 11ngbdatepicker 和 ie 11
【发布时间】:2020-05-28 18:41:26
【问题描述】:

在 IE 11 的 Angular 9 中使用 ngbdatepicker 时,datePicker 不会打开日期选择器窗口。

 <input class="form-control" placeholder="yyyy-mm-dd" name="dpFrom" [(ngModel)]="fromDate" 
                        ngbDatepicker #f="ngbDatepicker">
                    <button type="button" class="icn">                            
                        <fa-icon class="text-primary fa-2x" [icon]="faCalendarAlt"   (click)="f.toggle()"></fa-icon>
                    </button>

【问题讨论】:

    标签: browser backwards-compatibility


    【解决方案1】:

    对于那些感兴趣的人,我发现了这个问题,当结合使用 ngbdatepicker 和 fontawsome 图标时,您需要确保 ngbdatepicker 的点击事件与日期选择器保持一致,而不是 fontawsome 日历图标点击。其他浏览器不会抱怨 IE 会抱怨。

    【讨论】:

      猜你喜欢
      • 2015-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多