@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/es/index.js
CHANGED
|
@@ -2130,7 +2130,7 @@ function useListControl({ suggestions, formControl }) {
|
|
|
2130
2130
|
return false;
|
|
2131
2131
|
}
|
|
2132
2132
|
function refreshState(state) {
|
|
2133
|
-
setState((currentState) => ({ ...currentState, state }));
|
|
2133
|
+
setState((currentState) => ({ ...currentState, ...state }));
|
|
2134
2134
|
}
|
|
2135
2135
|
function setFormValue(value) {
|
|
2136
2136
|
formControl?.setValue(value);
|