@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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. 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 && !localValue && options.length && !!options[0] && typeof options[0] === 'object') {
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]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.4.27",
3
+ "version": "1.4.28",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"