mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
be683e3d4b
closes #3538, closes #3541 - The “autofocus” property isn’t considered by browsers if the element is created after the page has been loaded. The Ember cookbook recommends extending the input type with a manually triggered autofocus, which I included here. - This introduces the new helper “gh-focus-input”, an input field gaining focus even when routing occurs.
10 lines
536 B
Handlebars
10 lines
536 B
Handlebars
<section class="forgotten-box js-forgotten-box fade-in">
|
|
<form id="forgotten" class="forgotten-form" method="post" novalidate="novalidate">
|
|
<div class="email-wrap">
|
|
{{gh-trim-focus-input value=email class="email" type="email" placeholder="Email Address" name="email"
|
|
autofocus="autofocus" autocapitalize="off" autocorrect="off"}}
|
|
</div>
|
|
<button class="button-save" type="submit" {{action "submit"}} {{bind-attr disabled=submitting}}>Send new password</button>
|
|
</form>
|
|
</section>
|