Skip to content

Commit

Permalink
fix which button shows loader after typing code
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Nov 20, 2024
1 parent 53747b5 commit 47f80a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/pages/2fa/macros.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
if ($(this).val().length === 1) {
const next = $(this).next();
if (next.length === 0) {
$(this).closest('form').submit();
$(this).closest('form').find('button[name="continue"]').click();
input_fields.prop('disabled', true);
}
}
Expand All @@ -64,7 +64,7 @@
if (next.length) {
next.focus();
} else {
$(this).closest('form').submit();
$(this).closest('form').find('button[name="continue"]').click();
input_fields.prop('disabled', true);
}
}
Expand Down

0 comments on commit 47f80a5

Please sign in to comment.