Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Commit 008583c

Browse files
radireddyAxelPeter
authored andcommitted
fix(oui-stepper): call onSubmit when the form is not valid (#379)
1 parent bddbb11 commit 008583c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/oui-stepper/src/step-form/step-form.controller.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ export default class StepFormController {
5858
}
5959

6060
onFormSubmit (form) {
61+
this.onSubmit({ form });
6162
if (form.$valid && this.valid) {
62-
this.onSubmit({ form });
63-
6463
// Focus next step
6564
this.stepperCtrl.addForm(form, this.stepper.index);
6665
}

0 commit comments

Comments
 (0)