Skip to content

Commit ce1e5a9

Browse files
Merge 3825ce6 into 4a65647
2 parents 4a65647 + 3825ce6 commit ce1e5a9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/moveFieldState.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@ function moveFieldState(
1717
change: oldState.fields[destKey] && oldState.fields[destKey].change,
1818
blur: oldState.fields[destKey] && oldState.fields[destKey].blur,
1919
focus: oldState.fields[destKey] && oldState.fields[destKey].focus,
20+
validators: oldState.fields[destKey] && oldState.fields[destKey].validators,
21+
validateFields:
22+
oldState.fields[destKey] && oldState.fields[destKey].validateFields,
2023
lastFieldState: undefined // clearing lastFieldState forces renotification
2124
}
2225
if (!state.fields[destKey].change) {
23-
delete state.fields[destKey].change;
26+
delete state.fields[destKey].change
2427
}
2528
if (!state.fields[destKey].blur) {
26-
delete state.fields[destKey].blur;
29+
delete state.fields[destKey].blur
2730
}
2831
if (!state.fields[destKey].focus) {
29-
delete state.fields[destKey].focus;
32+
delete state.fields[destKey].focus
3033
}
3134
}
3235

0 commit comments

Comments
 (0)