Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 4a5871e

Browse files
committed
only validating form when it is initialized
1 parent 00b55f2 commit 4a5871e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Form.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ export default class Form extends React.Component {
110110
}
111111

112112
validate() {
113+
if (!this.initialized) {
114+
return;
115+
}
116+
113117
for (let input of this.inputs) {
114118
this.addToValidationQueue(input);
115119
}

0 commit comments

Comments
 (0)