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 authored Jan 5, 2024
1 parent 7351f2b commit ae64737
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 ae64737

Please sign in to comment.