【发布时间】:2022-05-04 17:17:14
【问题描述】:
我遇到了一个问题similar to this one。
我在整个表单上都有autocomplete="off",它在 Firefox 中可以正常工作,除了这个之外,大多数元素在 Chrome 中都可以正常工作:
<mat-form-field>
<input matInput
autocomplete="chrome-off"
type="number"
formControlName="leadTimeDays"
placeholder="Lead time days">
</mat-form-field>
我添加了autocomplete="chrome-off" 以查看是否可以解决问题,但它仍会填充表单对话框。我尝试构建一个Stackblitz with the latest @angular/material but ran into this issue,所以我只能提供一个截图:
关于如何禁用密码自动填充的任何想法?
【问题讨论】:
标签: html angular macos google-chrome angular-material