@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.
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/"