问题
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