input日期选择器没有光标不可输入

开发问题:
在这里插入图片描述
解决方式:

添加代码至html -----   ”readonly="readonly"

  <input class="form-control"  readonly="readonly" formControlName="listingDate" [format]="'yyyy-mm'" type="text" id="month" appDatepicker [format]="'mm'" 
              [startView]="3" [minView]="3" [startDate]="startDate" [endDate]="endDate" [maxView]="3" [(ngModel)]="listingDate" />

猜你喜欢

转载自blog.csdn.net/weixin_40121676/article/details/109517542