@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.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
|
{
|