Skip to content

Commit cab02b0

Browse files
author
Diego Rodríguez
committed
Fix: mantain submitted state on field change, add novalidate to form
1 parent f68752c commit cab02b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ class Form extends Component {
148148
this.setStateInternal({
149149
dirty: areDirty,
150150
errors: this.validate(config, allFields, areDirty),
151-
fields: allFields,
152-
submitted: false,
151+
fields: allFields
153152
});
154153
};
155154

@@ -312,6 +311,7 @@ class Form extends Component {
312311
onChange={this.onChange}
313312
onSubmit={this.onSubmit}
314313
onReset={this.onReset}
314+
novalidate
315315
>
316316
<FormProvider value={formContext}>{children}</FormProvider>
317317
</form>

0 commit comments

Comments
 (0)