Skip to content

Commit

Permalink
Merge pull request #1376 from navikt/bugfix-activity-list
Browse files Browse the repository at this point in the history
Force validation on summary page
  • Loading branch information
lotorvik authored Dec 3, 2024
2 parents d7d1ef1 + 04866c8 commit d59c690
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export type PanelValidation = {
};

const findFirstInputWithValidationError = (wizardComponent, data): Component | undefined => {
// Need to tell the Formio root component that the form has been submitted, to trigger validation.
wizardComponent.root.submitted = true;
const valid = wizardComponent.checkValidity(data);
if (!valid && wizardComponent.component.input) {
return wizardComponent.component;
Expand Down

0 comments on commit d59c690

Please sign in to comment.