()
| 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) { |