MCPcopy
hub / github.com/react-component/form / setFieldsAsDirty

Method setFieldsAsDirty

src/createFieldsStore.js:100–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 }
99
100 setFieldsAsDirty() {
101 Object.keys(this.fields).forEach((name) => {
102 const field = this.fields[name];
103 const fieldMeta = this.fieldsMeta[name];
104 if (field && fieldMeta && hasRules(fieldMeta.validate)) {
105 this.fields[name] = {
106 ...field,
107 dirty: true,
108 };
109 }
110 });
111 }
112
113 getFieldMeta(name) {
114 this.fieldsMeta[name] = this.fieldsMeta[name] || {};

Callers 2

onCollectFunction · 0.80
onCollectValidateFunction · 0.80

Calls 1

hasRulesFunction · 0.90

Tested by

no test coverage detected