Skip to content

Commit

Permalink
Wrap in try/finally just in case
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Dahlby <[email protected]>
  • Loading branch information
haacked and dahlbyk committed Jan 5, 2024
1 parent aeac6dc commit 8a0095b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -814,9 +814,9 @@ export class ValidationService {
}
}

form.submit();

if (form.action != initialFormAction) {
try {
form.submit();
} finally {
form.action = initialFormAction;
}
}
Expand Down

0 comments on commit 8a0095b

Please sign in to comment.