@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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/types/components/colorpicker/ColorTextInput.d.ts.map +1 -1
- package/dist/types/components/pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/reactable/helpers/ReactableTable.d.ts.map +1 -1
- package/package.json +64 -63
package/dist/index.js
CHANGED
|
@@ -320,15 +320,15 @@ _ValidatedTextInput.defaultProps = {
|
|
|
320
320
|
let ValidatedTextInput = _ValidatedTextInput;
|
|
321
321
|
function ColorTextInput({ value, pattern, onChange, placeholder, style }) {
|
|
322
322
|
const [text, setText] = useState(value);
|
|
323
|
+
useEffect(() => {
|
|
324
|
+
setText(value);
|
|
325
|
+
}, [value]);
|
|
323
326
|
function handleChange(value2, valid) {
|
|
324
327
|
setText(value2);
|
|
325
328
|
if (valid) {
|
|
326
329
|
onChange(value2);
|
|
327
330
|
}
|
|
328
331
|
}
|
|
329
|
-
useEffect(() => {
|
|
330
|
-
setText(value);
|
|
331
|
-
}, [value]);
|
|
332
332
|
return /* @__PURE__ */ jsx(
|
|
333
333
|
ValidatedTextInput,
|
|
334
334
|
{
|