@etsoo/materialui 1.0.82 → 1.0.83

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/lib/DataSteps.js CHANGED
@@ -27,6 +27,8 @@ export function DataSteps(props) {
27
27
  const indexRef = React.useRef(-1);
28
28
  // Current Json data
29
29
  const jsonRef = React.useRef(jsonValue);
30
+ if (jsonValue != jsonRef.current)
31
+ jsonRef.current = jsonValue;
30
32
  // Current value
31
33
  const [localValue, setLocalValue] = React.useState(value);
32
34
  // Get step
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.0.82",
3
+ "version": "1.0.83",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/src/DataSteps.tsx CHANGED
@@ -85,6 +85,7 @@ export function DataSteps<T extends object>(props: DataStepsProps<T>) {
85
85
 
86
86
  // Current Json data
87
87
  const jsonRef = React.useRef<T>(jsonValue);
88
+ if (jsonValue != jsonRef.current) jsonRef.current = jsonValue;
88
89
 
89
90
  // Current value
90
91
  const [localValue, setLocalValue] = React.useState(value);