diff --git a/src/index.ts b/src/index.ts index b50ede4..bc9737f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -859,10 +859,16 @@ export class ValidationService { }); form.dispatchEvent(validationEvent); - this.handleValidated(form, success, e); + // Firefox fix: redispatch 'submit' after finished handling this event + setTimeout(() => { + try { + this.handleValidated(form, success, e); + } finally { + validating = false; + } + }, 0); }).catch(error => { this.logger.log('Validation error', error); - }).finally(() => { validating = false; }); };