0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 Fixed autofocus on password reset screen

no issue

- autofocus was running on both inputs so the "confirm" input was winning out
- updated copy
This commit is contained in:
Kevin Ansfield 2020-05-07 10:33:27 +01:00
parent 0ea722f647
commit b5e5469410

View file

@ -8,7 +8,7 @@
<GhTextInput <GhTextInput
@type="password" @type="password"
@name="newpassword" @name="newpassword"
@placeholder="Password" @placeholder="New password"
@class="password" @class="password"
@autocorrect="off" @autocorrect="off"
@shouldFocus={{true}} @shouldFocus={{true}}
@ -22,16 +22,15 @@
<GhTextInput <GhTextInput
@type="password" @type="password"
@name="ne2password" @name="ne2password"
@placeholder="Confirm Password" @placeholder="Confirm new password"
@class="password" @class="password"
@autocorrect="off" @autocorrect="off"
@shouldFocus={{true}}
@value={{readonly this.ne2Password}} @value={{readonly this.ne2Password}}
@input={{action (mut this.ne2Password) value="target.value"}} /> @input={{action (mut this.ne2Password) value="target.value"}} />
</span> </span>
</GhFormGroup> </GhFormGroup>
<GhTaskButton @buttonText="Reset Password" @task={{this.resetPassword}} @class="gh-btn gh-btn-blue gh-btn-block gh-btn-icon" @type="submit" @autoWidth="false" /> <GhTaskButton @buttonText="Save new password" @task={{this.resetPassword}} @class="gh-btn gh-btn-blue gh-btn-block gh-btn-icon" @type="submit" @autoWidth="false" />
</form> </form>
<p class="main-error">{{this.flowErrors}}&nbsp;</p> <p class="main-error">{{this.flowErrors}}&nbsp;</p>