@dartech/arsenal-ui 1.4.27 → 1.4.28
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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -793,7 +793,7 @@ const ControlAutocomplete = _a => {
|
|
793
793
|
setLocalValue(value);
|
794
794
|
};
|
795
795
|
useEffect(() => {
|
796
|
-
if (typeof value === 'string' && valueKey && useStringValue &&
|
796
|
+
if (typeof value === 'string' && valueKey && useStringValue && localValue === undefined && options.length && !!options[0] && typeof options[0] === 'object') {
|
797
797
|
setLocalValue(options.find(el => _get(el, valueKey) === value));
|
798
798
|
}
|
799
799
|
}, [localValue, options, useStringValue, value, valueKey]);
|