Skip to content

Commit 343a0f3

Browse files
committed
changed default value for focusFirstInput as per #594
1 parent 1765525 commit 343a0f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Guide.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ Details for each of them follow.
250250
| defaultState | String | "signIn" | Specifies the state to be used initially when atForm is rendered. This is not considered when rendering atForm on configured routes. |
251251
| 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. |
252252
| 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!!!** |
253-
| focusFirstInput | Boolean | true | When set to true, asks to autofocus the first input of atForm when the template is rendered. |
253+
| 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. |
254254
| 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. |
255255
| 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. |
256256
| sendVerificationEmail | Boolean | false | Specifies whether to send the verification email after successful registration. |
@@ -445,7 +445,7 @@ Each option is described below:
445445
<a name="detect-reactively-when-a-form-is-being-processed"/>
446446
### Detect reactively when a form is being processed
447447

448-
`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:
448+
`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:
449449

450450
```html
451451
<template name="myLogin">

lib/core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ AT.prototype.options = {
246246
confirmPassword: true,
247247
defaultState: "signIn",
248248
enablePasswordChange: false,
249-
focusFirstInput: true,
249+
focusFirstInput: !Meteor.isCordova,
250250
forbidClientAccountCreation: false,
251251
lowercaseUsername: false,
252252
overrideLoginErrors: true,

0 commit comments

Comments
 (0)