diff --git a/src/moveFieldState.js b/src/moveFieldState.js index c1219ea..8521a79 100644 --- a/src/moveFieldState.js +++ b/src/moveFieldState.js @@ -17,16 +17,19 @@ function moveFieldState( change: oldState.fields[destKey] && oldState.fields[destKey].change, blur: oldState.fields[destKey] && oldState.fields[destKey].blur, focus: oldState.fields[destKey] && oldState.fields[destKey].focus, + validators: oldState.fields[destKey] && oldState.fields[destKey].validators, + validateFields: + oldState.fields[destKey] && oldState.fields[destKey].validateFields, lastFieldState: undefined // clearing lastFieldState forces renotification } if (!state.fields[destKey].change) { - delete state.fields[destKey].change; + delete state.fields[destKey].change } if (!state.fields[destKey].blur) { - delete state.fields[destKey].blur; + delete state.fields[destKey].blur } if (!state.fields[destKey].focus) { - delete state.fields[destKey].focus; + delete state.fields[destKey].focus } }