纸张输入自动填充未能填充 [英] paper-input autocomplete fails to fill

查看:177
本文介绍了纸张输入自动填充未能填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

聚合物1.0
Chrome 50.0.2661.102

我试图启用带自动填充功能的纸张输入。当选择任何一个输入时,出现标准的适当的chrome自动填充提示列表,但是选择一个可用的名称或来自列表的电子邮件不会填充输入,它只是关闭chrome自动填充列表。

 <纸张输入
id =email
name =email
label =电子邮件
类型= email
autocomplete =email
>< / paper-input>
<纸张输入
id =密码
名称=密码
标签=密码
类型=密码
自动完成=当前密码
>< / paper-input>


解决方案

尝试在没有属性的表单标签中包装输入。像这样:

 < form> 
id =email
name =email
label =电子邮件
类型=电子邮件
自动完成=email
>< / paper-input>
<纸张输入
id =密码
名称=密码
标签=密码
类型=密码
自动完成=当前密码
>< / paper-input>
< / form>


Polymer 1.0 Chrome 50.0.2661.102

I am trying to enable chrome autofill with paper input. When selecting either input the standard appropriate chrome autofill prompt list appears, however selecting an available name, or email from the list does not populate the input, it just closes the chrome autofill list.

   <paper-input
     id="email"
     name="email"
     label="Email"
     type="email"
     autocomplete="email"
   ></paper-input>
   <paper-input
     id="password"
     name="password"
     label="Password"
     type="password"
     autocomplete="current-password"
   ></paper-input>

解决方案

Try wrapping your inputs in form tags without attributes. Like this:

<form>
  <paper-input
     id="email"
     name="email"
     label="Email"
     type="email"
     autocomplete="email"
   ></paper-input>
   <paper-input
     id="password"
     name="password"
     label="Password"
     type="password"
     autocomplete="current-password"
   ></paper-input>
</form>

这篇关于纸张输入自动填充未能填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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