@rolster/react-components 18.15.20 → 18.15.22

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
@@ -1437,7 +1437,7 @@ function RlsInput({ children, disabled, formControl, onValue, placeholder, type,
1437
1437
  }
1438
1438
  return (jsxRuntimeExports.jsxs("div", { className: renderClassStatus('rls-input', {
1439
1439
  focused: formControl?.focused ?? focused,
1440
- disabled: formControl?.disabled ?? disabled
1440
+ disabled: formControl?.disabled || disabled
1441
1441
  }), children: [jsxRuntimeExports.jsx("input", { ref: formControl?.elementRef, className: "rls-input__component", autoComplete: "off", type: type ?? 'text', placeholder: placeholder, disabled: formControl?.disabled ?? disabled, onFocus: onFocus, onBlur: onBlur, onChange: onChange, value: formControl?.value ?? value ?? '' }), jsxRuntimeExports.jsx("span", { className: "rls-input__value", children: children })] }));
1442
1442
  }
1443
1443
 
@@ -1475,7 +1475,7 @@ function RlsInputPassword({ disabled, formControl, onValue, placeholder, type })
1475
1475
  }
1476
1476
  return (jsxRuntimeExports.jsx("div", { className: renderClassStatus('rls-input-password', {
1477
1477
  focused: formControl?.focused ?? focused,
1478
- disabled
1478
+ disabled: formControl?.disabled || disabled
1479
1479
  }), children: jsxRuntimeExports.jsx("input", { className: "rls-input-password__component", autoComplete: "off", type: type ?? 'password', placeholder: placeholder, disabled: disabled, onFocus: onFocus, onBlur: onBlur, onChange: onChange }) }));
1480
1480
  }
1481
1481
 
@@ -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);