问题描述
我只对数字和点使用 matInput 和模式
<mat-form-field>
<mat-label>Table Number</mat-label>
<input matInput placeholder="Enter Table Number"
pattern="^\d+(\.\d+)*$" [(ngModel)]="newStudy.tableNo">
</mat-form-field>
<input type="button" class="body-popup-btn" value="Save" [disabled]="!pattern" (click)="onSubmitClick()" style="background: #1d5f93;">
但是即使模式正确,按钮也不会再次启用。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)