防止自动填充角度材料设计中保存的密码 [英] Prevent autofill the saved password in angular material design

查看:90
本文介绍了防止自动填充角度材料设计中保存的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在角材料设计中如何防止使用已保存的密码自动填充密码字段

How to prevent the password field from auto-fill with saved password in angular material design

我使用了autocomplete ="off",它对我不起作用.

I have used autocomplete="off" it does not worked for me.

   <md-input-container class="md-block margin-top-10" flex-gt-sm>

      <input type="password" name="password" ng-model="auth.user.password"  
         name="password" ng-required="true" autocomplete="off" >  
      </md-input-container>

推荐答案

据我所知,这是材料方面的问题,如

As far as I know this is an issue for material, as documented here.

如评论中所述,有一种解决方法,只需在表单定义中添加autocomplete="off".

As mentioned in the comments there is a workaround for this just add autocomplete="off" in the form definition.

这篇关于防止自动填充角度材料设计中保存的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆