@dartech/arsenal-ui 1.4.27 → 1.4.28
Sign up to get free protection for your applications and to get access to all the features.
- 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]);
|