-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autofocus the first input field #384
Comments
That's a good point! What about trying to leverage |
It probably makes more sense to use the TBH I'm not sure if this issue should be solved by meteor-useraccounts, or instead solved in a more generic way be Blaze. I created this package that is basically adding a |
yeah an |
Could you please have a look at the above linked commit? It seems working and quite reasonable... Let me know your thoughts |
Did you try |
yes, but it's the template for the link which is picked up and there are no input elements inside there :( |
I think this autofocus is messing up my views inside cordova: meteor-useraccounts/ionic#8. Any chance to make this configurable? I need a fix in small mobile screens... |
I would also like to know a way disable this feature, because it is causing some problems with my UI as well. |
I used a brute-force approach to solve the issue for now. While it is not pretty it works for my app:
For the template add this code
And finally for the code:
|
I tried your solution with no luck, I will continue looking into this so I can solve it, thanks. ;) |
Having the first visible input focused should be made optional. Feel free to merge #481. |
Any update on this? I'm using just iOS for now. I'm having a hard to autofocusing on a static textarea. |
A new AccountsTemplates.configure({
focusFirstInput: false
}) |
Hello,
I think it should be the default to autofocus the first input field when a
atForm
form is rendered. Currently I'm using the simple:but it does not handle some of the navigation scenarios, for instance if a user switch the form
state
by clicking on the “I already have an account, log in” link.The text was updated successfully, but these errors were encountered: