@deviceinsight/ng-ui-components 7.4.0 → 7.9.0

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/index.cjs CHANGED
@@ -339,15 +339,15 @@ _ValidatedTextInput.defaultProps = {
339
339
  let ValidatedTextInput = _ValidatedTextInput;
340
340
  function ColorTextInput({ value, pattern, onChange, placeholder, style }) {
341
341
  const [text, setText] = React.useState(value);
342
+ React.useEffect(() => {
343
+ setText(value);
344
+ }, [value]);
342
345
  function handleChange(value2, valid) {
343
346
  setText(value2);
344
347
  if (valid) {
345
348
  onChange(value2);
346
349
  }
347
350
  }
348
- React.useEffect(() => {
349
- setText(value);
350
- }, [value]);
351
351
  return /* @__PURE__ */ jsxRuntime.jsx(
352
352
  ValidatedTextInput,
353
353
  {