Skip to content

Commit

Permalink
fix: Disable button to avoid multiple valiations
Browse files Browse the repository at this point in the history
  • Loading branch information
AyakorK committed Apr 26, 2024
1 parent 9bc2c49 commit ce60c29
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ $(() => {
$inputBox.val(values[index]);
$inputBox = $inputBox.next('input[type="number"]');
if ($inputBox.length === 0) {
$form.find('button[type="submit"]').prop("disabled", true);
$form.submit();
}
});
Expand Down

0 comments on commit ce60c29

Please sign in to comment.