MCPcopy Index your code
hub / github.com/react-component/form / onCollectValidate

Function onCollectValidate

src/createBaseForm.js:152–167  ·  view source on GitHub ↗
(name_, action, ...args)

Source from the content-addressed store, hash-verified

150 },
151
152 onCollectValidate(name_, action, ...args) {
153 const { field, fieldMeta } = this.onCollectCommon(name_, action, args);
154 const newField = {
155 ...field,
156 dirty: true,
157 };
158
159 this.fieldsStore.setFieldsAsDirty();
160
161 this.validateFieldsInternal([newField], {
162 action,
163 options: {
164 firstFields: !!fieldMeta.validateFirst,
165 },
166 });
167 },
168
169 getCacheBind(name, action, fn) {
170 if (!this.cachedBind[name]) {

Callers

nothing calls this directly

Calls 1

setFieldsAsDirtyMethod · 0.80

Tested by

no test coverage detected