Skip to content

Commit

Permalink
feat(Form): add novalidate flag to form (patternfly#1253)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcfaul authored and jschuler committed Jan 28, 2019
1 parent 62059db commit 5e54437
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const defaultProps = {
};

const Form = ({ className, children, isHorizontal, ...props }) => (
<form {...props} className={css(styles.form, isHorizontal && styles.modifiers.horizontal, className)}>
<form noValidate {...props} className={css(styles.form, isHorizontal && styles.modifiers.horizontal, className)}>
<FormContext.Provider value={{ isHorizontal }}>{children}</FormContext.Provider>
</form>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ exports[`ActionGroup component should render horizontal form ActionGroup variant
>
<form
className="pf-c-form pf-m-horizontal"
noValidate={true}
>
<ActionGroup
className=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exports[`Form component should render default form variant 1`] = `
<form
className="pf-c-form"
noValidate={true}
>
<[object Object]
value={
Expand All @@ -27,6 +28,7 @@ exports[`Form component should render horizontal form variant 1`] = `
<form
className="pf-c-form pf-m-horizontal"
noValidate={true}
>
<[object Object]
value={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ exports[`FormGroup component should render horizontal form group variant 1`] = `
>
<form
className="pf-c-form pf-m-horizontal"
noValidate={true}
>
<FormGroup
className=""
Expand Down

0 comments on commit 5e54437

Please sign in to comment.