horsey-ybg
Advanced tools
Comparing version
@@ -65,2 +65,3 @@ 'use strict'; | ||
var debounce = options.debounce; | ||
var autoFocusFirst = options.debounce; | ||
@@ -103,2 +104,3 @@ var caching = options.cache !== false; | ||
debounce: debounce, | ||
autoFocusFirst: autoFocusFirst, | ||
set: function set(s) { | ||
@@ -838,3 +840,3 @@ if (setAppends !== true) { | ||
} | ||
if (!selection) { | ||
if (!selection && autoFocusFirst) { | ||
move(); | ||
@@ -841,0 +843,0 @@ } |
@@ -55,2 +55,3 @@ 'use strict'; | ||
let previousSelection = null; | ||
const autoFocusFirst = options.autoFocusFirst | ||
const limit = Number(options.limit) || Infinity; | ||
@@ -72,2 +73,3 @@ const completer = autocomplete(el, { | ||
debounce, | ||
autoFocusFirst, | ||
set (s) { | ||
@@ -174,2 +176,3 @@ if (setAppends !== true) { | ||
const debouncedLoading = debounce(loading, debounceTime); | ||
const autoFocusFirst = o.autoFocusFirst; | ||
@@ -663,3 +666,3 @@ if (o.autoHideOnBlur === void 0) { o.autoHideOnBlur = true; } | ||
} | ||
if (!selection) { | ||
if (!selection && autoFocusFirst) { | ||
move(); | ||
@@ -666,0 +669,0 @@ } |
{ | ||
"name": "horsey-ybg", | ||
"version": "4.2.6", | ||
"version": "4.2.7", | ||
"description": "Progressive and customizable autocomplete component", | ||
@@ -5,0 +5,0 @@ "main": "horsey.es5.js", |
396490
0.06%5177
0.1%