Skip to content

Commit 24e9e0c

Browse files
authored
Merge pull request #61 from selbekk/fix/novalidate
fix(Form): fix casing of novalidate
2 parents 30d776c + f64884a commit 24e9e0c

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

package.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"version": "0.0.0-semantically-released",
44
"description": "A red hot validation library for React",
55
"main": "dist/index.js",
6-
"keywords": [
7-
"validation",
8-
"react",
9-
"react validation"
10-
],
6+
"keywords": ["validation", "react", "react validation"],
117
"license": "MIT",
128
"repository": {
139
"type": "git",
@@ -49,10 +45,7 @@
4945
"react": "^16.3.1",
5046
"react-dom": "^16.3.1"
5147
},
52-
"files": [
53-
"README.md",
54-
"dist"
55-
],
48+
"files": ["README.md", "dist"],
5649
"config": {
5750
"commitizen": {
5851
"path": "node_modules/cz-conventional-changelog"

src/Form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class Form extends Component {
147147
this.setStateInternal({
148148
dirty: areDirty,
149149
errors: this.validate(config, allFields, areDirty),
150-
fields: allFields
150+
fields: allFields,
151151
});
152152
};
153153

@@ -307,10 +307,10 @@ class Form extends Component {
307307
return (
308308
<form
309309
{...rest}
310+
noValidate
310311
onChange={this.onChange}
311312
onSubmit={this.onSubmit}
312313
onReset={this.onReset}
313-
novalidate
314314
>
315315
<FormProvider value={formContext}>{children}</FormProvider>
316316
</form>

0 commit comments

Comments
 (0)