@etsoo/materialui 1.1.33 → 1.1.34

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/ComboBox.js CHANGED
@@ -62,7 +62,7 @@ export function ComboBox(props) {
62
62
  React.useEffect(() => {
63
63
  if (localValue != null)
64
64
  setStateValue(localValue);
65
- }, [localValue]);
65
+ }, [JSON.stringify(localValue) != JSON.stringify(stateValue)]);
66
66
  // Add readOnly
67
67
  const addReadOnly = (params) => {
68
68
  if (readOnly != null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.1.33",
3
+ "version": "1.1.34",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/src/ComboBox.tsx CHANGED
@@ -174,7 +174,7 @@ export function ComboBox<
174
174
 
175
175
  React.useEffect(() => {
176
176
  if (localValue != null) setStateValue(localValue);
177
- }, [localValue]);
177
+ }, [JSON.stringify(localValue) != JSON.stringify(stateValue)]);
178
178
 
179
179
  // Add readOnly
180
180
  const addReadOnly = (params: AutocompleteRenderInputParams) => {