You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,6 +217,19 @@ In `rc-form`, we support like `user.name` to be a name and convert value to `{ u
217
217
218
218
Field Form will only trade `['user', 'name']` to be `{ user: { name: 'Bamboo' } }`, and `user.name` to be `{ ['user.name']: 'Bamboo' }`.
219
219
220
+
## 🔥 Remove `validateFieldsAndScroll`
221
+
222
+
Since `findDomNode` is marked as warning in [StrictMode](https://reactjs.org/docs/strict-mode.html#warning-about-deprecated-finddomnode-usage). It seems over control of Form component.
223
+
We decide to remove `validateFieldsAndScroll` method and you should handle it with you own logic:
224
+
225
+
```jsx
226
+
<Form>
227
+
<Field name="username">
228
+
<input ref={this.inputRef} />
229
+
</Field>
230
+
</Form>
231
+
```
232
+
220
233
## 🔥 `getFieldsError` always return array
221
234
222
235
`rc-form` returns `null` when no error happen. This makes user have to do some additional code like:
0 commit comments