fix(OTP): Autofocus OTP input, fix placeholder (#24203)
* fix(OTP): Autofocus OTP input DOM insertion does not trigger autofocus, only initial load does. * fix(OTP): Fix placeholder of OTP input
This commit is contained in:
parent
9b8a8c155d
commit
0932bbf10c
1 changed files with 2 additions and 1 deletions
|
|
@ -339,13 +339,14 @@ var request_otp = function (r) {
|
|||
<span class="indicator blue" data-text="Verification">{{ _("Verification") }}</span>
|
||||
</div>
|
||||
<div id="otp_div"></div>
|
||||
<input type="text" id="login_token" autocomplete="off" class="form-control" placeholder={{ _("Verification Code") }} required="" autofocus="">
|
||||
<input type="text" id="login_token" autocomplete="off" class="form-control" placeholder="{{ _("Verification Code") }}" required="">
|
||||
<button class="btn btn-sm btn-primary btn-block mt-3" id="verify_token">{{ _("Verify") }}</button>
|
||||
</form>
|
||||
</div>`
|
||||
);
|
||||
// add event handler for submit button
|
||||
verify_token();
|
||||
$("#login_token").get(0)?.focus();
|
||||
}
|
||||
|
||||
var continue_otp_app = function (setup, qrcode) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue