Skip to content

Commit

Permalink
changed default value for focusFirstInput as per #594
Browse files Browse the repository at this point in the history
  • Loading branch information
splendido committed Dec 12, 2015
1 parent 1765525 commit 343a0f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Details for each of them follow.
| defaultState | String | "signIn" | Specifies the state to be used initially when atForm is rendered. This is not considered when rendering atForm on configured routes. |
| enablePasswordChange | Boolean | false | Specifies whether to allow to show the form for password change. Note: In case the `changePwd` route is not configures, this is to be done *manually* inside some custom template. |
| enforceEmailVerification | Boolean | false | When set to true together with sendVerificationEmail, forbids user login unless the email address is verified. **Warning: experimental! Use it only if you have accounts-password as the only service!!!** |
| focusFirstInput | Boolean | true | When set to true, asks to autofocus the first input of atForm when the template is rendered. |
| focusFirstInput | Boolean | !Meteor.isCordova | When set to true, asks to autofocus the first input of atForm when the template is rendered. Note: have a look at [this issue](https://github.com/meteor-useraccounts/core/issues/594) in case you're getting problems with cordova apps. |
| forbidClientAccountCreation | Boolean | false | Specifies whether to forbid user registration from the client side. In case it is set to true, neither the link for user registration nor the sign up form will be shown. |
| overrideLoginErrors | Boolean | true | Asks to show a general `Login Forbidden` on a login failure, without specifying whether it was for a wrong email or for a wrong password. |
| sendVerificationEmail | Boolean | false | Specifies whether to send the verification email after successful registration. |
Expand Down Expand Up @@ -445,7 +445,7 @@ Each option is described below:
<a name="detect-reactively-when-a-form-is-being-processed"/>
### Detect reactively when a form is being processed

`AccountsTemplates.disabled()` returns `true` when a submitted form is being processed and `false` once the submission process has been completed(successfully or not). `AccountsTemplate.disabled()` is reactive and can be used to trigger UI events, such as spinners, "Please wait" messages or to disable input elements, while the form is being processed. The function works irrespectively of form status (signIn, signUp, pwdReset etc.). A typical use-case would be in a template helper:
`AccountsTemplates.disabled()` returns `true` when a submitted form is being processed and `false` once the submission process has been completed (successfully or not). `AccountsTemplate.disabled()` is reactive and can be used to trigger UI events, such as spinners, "Please wait" messages or to disable input elements, while the form is being processed. The function works irrespectively of form status (signIn, signUp, pwdReset etc.). A typical use-case would be in a template helper:

```html
<template name="myLogin">
Expand Down
2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ AT.prototype.options = {
confirmPassword: true,
defaultState: "signIn",
enablePasswordChange: false,
focusFirstInput: true,
focusFirstInput: !Meteor.isCordova,
forbidClientAccountCreation: false,
lowercaseUsername: false,
overrideLoginErrors: true,
Expand Down

0 comments on commit 343a0f3

Please sign in to comment.