Brower's autofill is not working in ember.js forms

◇◆丶佛笑我妖孽 提交于 2019-12-11 08:38:16

问题


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?

Ex:

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


回答1:


Adding autocomplete="true" should do it.

So like this: {{input value=name name="email" autocomplete="true"}}

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/edit?html,js,output



来源:https://stackoverflow.com/questions/23804008/browers-autofill-is-not-working-in-ember-js-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!