horsey-ybg
Advanced tools
Comparing version
@@ -706,3 +706,3 @@ 'use strict'; | ||
function move(up, moves) { | ||
function move(up, moves, autoFocus) { | ||
var total = api.source.length; | ||
@@ -722,4 +722,7 @@ if (total === 0) { | ||
var li = findNext(); | ||
select(li); | ||
if(autoFocus || autoFocus === undefined){ | ||
select(li); | ||
} | ||
if (hidden(li)) { | ||
@@ -842,3 +845,7 @@ move(up, moves ? moves + 1 : 1); | ||
if (!selection) { | ||
move(); | ||
if(!autoFocusFirst) { | ||
move(undefined, undefined, false); | ||
}else{ | ||
move(); | ||
} | ||
} | ||
@@ -845,0 +852,0 @@ if (!selection && !nomatch) { |
@@ -537,3 +537,3 @@ 'use strict'; | ||
function move (up, moves) { | ||
function move (up, moves, autoFocus) { | ||
const total = api.source.length; | ||
@@ -553,4 +553,7 @@ if (total === 0) { | ||
const li = findNext(); | ||
select(li); | ||
if(autoFocus || autoFocus === undefined){ | ||
select(li); | ||
} | ||
if (hidden(li)) { | ||
@@ -666,3 +669,7 @@ move(up, moves ? moves + 1 : 1); | ||
if (!selection) { | ||
move(); | ||
if(!autoFocusFirst) { | ||
move(undefined, undefined, false); | ||
}else{ | ||
move(); | ||
} | ||
} | ||
@@ -669,0 +676,0 @@ if (!selection && !nomatch) { |
{ | ||
"name": "horsey-ybg", | ||
"version": "4.2.10", | ||
"version": "4.2.11", | ||
"description": "Progressive and customizable autocomplete component", | ||
@@ -5,0 +5,0 @@ "main": "horsey.es5.js", |
396837
0.08%5190
0.23%