MCPcopy Create free account
hub / github.com/Lobos/react-ui / validate

Method validate

src/Form.js:90–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 }
89
90 validate () {
91 let success = true;
92 forEach(this.items, (item) => {
93 let suc = item.$validation;
94 if (suc === undefined) {
95 suc = item.validate();
96 this.items[item.id].$validation = suc;
97 }
98 success = success && (suc === true);
99 });
100 return success;
101 }
102
103 handleSubmit (event) {
104 if (this.props.disabled) {

Callers 1

submitMethod · 0.95

Calls 1

forEachFunction · 0.90

Tested by

no test coverage detected