@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 +1 -1
- package/package.json +1 -1
- package/src/ComboBox.tsx +1 -1
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
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) => {
|