浏览器的自动填充功能无法在ember.js表单中运行 [英] Brower's autofill is not working in ember.js forms

查看:70
本文介绍了浏览器的自动填充功能无法在ember.js表单中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用户需要登录的情况并不罕见.在大多数浏览器中,都有一个密码管理器.问题在于,对于使用javascript构建的表单,浏览器无法识别表单.自动填充功能不起作用.有什么解决方法吗?

It's not uncommon user needs to login. And in most browsers, there is a password manager. The problem is that for forms, that are built using javascript, browser doesn't recognize forms. And autofill feature doesn't work. Any work around?

例如:

<form> {{input value=name name="firstname"}} </form>

<form> {{input value=name name="firstname"}} </form>

推荐答案

添加autocomplete="true"应该可以.

像这样:{{input value=name name="email" autocomplete="true"}}

更新::我不确定为什么您的表单无法正常工作,我会检查所有选项,例如在浏览器中启用了自动填充功能,但是对于我自己,jsbin中的以下表单允许我在以下情况下自动填充功能:我点击第一个框.

UPDATE:: I'm not sure why your form is not working, I would check all options such as that auto-fill is enabled in your browser, but for myself, the following form in the jsbin allows me to autofill when I click on the first box.

http://emberjs.jsbin.com/jifuxako/1/编辑?html,js,输出

这篇关于浏览器的自动填充功能无法在ember.js表单中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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