@via-profit/ui-kit 0.1.0-rc.94 → 0.1.0-rc.96

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.
@@ -62,7 +62,6 @@ const Autocomplete = react_1.default.forwardRef((props, ref) => {
62
62
  }
63
63
  dispatch((0, context_1.actionSetPartial)({
64
64
  filteredItems: items,
65
- currentValue: null,
66
65
  inputValue: '',
67
66
  }));
68
67
  setTimeout(() => {
@@ -250,7 +249,10 @@ const Autocomplete = react_1.default.forwardRef((props, ref) => {
250
249
  }
251
250
  }, onFocus: event => {
252
251
  isFocusedRef.current = true;
253
- if (openOnFocus && !currentOpen && filteredItems.length > 0) {
252
+ if (openOnFocus &&
253
+ !currentOpen &&
254
+ filteredItems.length > 0 &&
255
+ inputValue.trim() !== '') {
254
256
  onRequestOpen(event);
255
257
  }
256
258
  if (!openOnFocus && !currentOpen && inputValue !== '' && filteredItems.length > 0) {
@@ -263,7 +265,10 @@ const Autocomplete = react_1.default.forwardRef((props, ref) => {
263
265
  if (typeof nativeInputProps.onClick === 'function') {
264
266
  nativeInputProps.onClick(event);
265
267
  }
266
- if (isFocusedRef.current && !currentOpen && filteredItems.length > 0) {
268
+ if (isFocusedRef.current &&
269
+ !currentOpen &&
270
+ filteredItems.length > 0 &&
271
+ inputValue.trim() !== '') {
267
272
  onRequestOpen(event);
268
273
  }
269
274
  }, onChange: event => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@via-profit/ui-kit",
3
- "version": "0.1.0-rc.94",
3
+ "version": "0.1.0-rc.96",
4
4
  "description": "UI Kit",
5
5
  "repository": {
6
6
  "type": "git",