@rolster/react-components 18.15.20 → 18.15.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -2132,7 +2132,7 @@ function useListControl({ suggestions, formControl }) {
2132
2132
  return false;
2133
2133
  }
2134
2134
  function refreshState(state) {
2135
- setState((currentState) => ({ ...currentState, state }));
2135
+ setState((currentState) => ({ ...currentState, ...state }));
2136
2136
  }
2137
2137
  function setFormValue(value) {
2138
2138
  formControl?.setValue(value);