input - Ionic 2 ionic 输入没有浏览器自动填充?

标签 input ionic2

我正在使用 ionic2 框架制作一个登录表单,其中包含两个字段:emailpassword

   <ion-item>
        <ion-label floating>Email</ion-label>
        <ion-input formControlName="email" type="text" #emailModel></ion-input>
    </ion-item>
    <ion-item>
        <ion-label floating>Password</ion-label>
        <ion-input formControlName="password" [type]="isActive ? 'text' : 'password'"></ion-input>  </ion-item> 
    <ion-grid padding>

经过几次测试后,我注意到,当我输入之前已经输入的电子邮件时,输入下不会弹出自动填充,就像正常的输入一样。这是登录表单的正常行为吗?

最佳答案

我想到的修复方法是:autocomplete="on"name="email"

 <ion-input autocomplete="on" name="email" formControlName="email" type="text" #emailModel></ion-input>

关于input - Ionic 2 ionic 输入没有浏览器自动填充?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43759410/

相关文章:

typescript - TS2307 : Cannot find module 'ionic/ionic'

ios - 在 IOS Ionic 2 上打开外部 URL

javascript - 未捕获的类型错误 : Cannot read property 'ca' of null when dragging Google Map

json - ionic 错误 v.context.$implicit 未定义

C++ 输入未正确阻塞

c - 处理 shell 上的键盘输入

javascript - 除非选中复选框,否则禁用输入按钮

PHP:检查输入是否为有效数字的最佳方法?

angular - ionic 2 如何在选项卡中增加徽章

jquery - 自动前进输入字段(多部分序列号)