@via-profit/ui-kit 0.1.0-rc.95 → 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.
@@ -249,7 +249,10 @@ const Autocomplete = react_1.default.forwardRef((props, ref) => {
249
249
  }
250
250
  }, onFocus: event => {
251
251
  isFocusedRef.current = true;
252
- if (openOnFocus && !currentOpen && filteredItems.length > 0) {
252
+ if (openOnFocus &&
253
+ !currentOpen &&
254
+ filteredItems.length > 0 &&
255
+ inputValue.trim() !== '') {
253
256
  onRequestOpen(event);
254
257
  }
255
258
  if (!openOnFocus && !currentOpen && inputValue !== '' && filteredItems.length > 0) {
@@ -262,7 +265,10 @@ const Autocomplete = react_1.default.forwardRef((props, ref) => {
262
265
  if (typeof nativeInputProps.onClick === 'function') {
263
266
  nativeInputProps.onClick(event);
264
267
  }
265
- if (isFocusedRef.current && !currentOpen && filteredItems.length > 0) {
268
+ if (isFocusedRef.current &&
269
+ !currentOpen &&
270
+ filteredItems.length > 0 &&
271
+ inputValue.trim() !== '') {
266
272
  onRequestOpen(event);
267
273
  }
268
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.95",
3
+ "version": "0.1.0-rc.96",
4
4
  "description": "UI Kit",
5
5
  "repository": {
6
6
  "type": "git",