Hide completion window earlier
This commit is contained in:
parent
09ba680f10
commit
edca091108
|
@ -77,11 +77,16 @@ function showSearchResults(searchTool, query, input, value, resultType) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function showSearchResultsExtended(element, template, searchTool, query, input, value, resultType, options) {
|
function showSearchResultsExtended(element, template, searchTool, query, input, value, resultType, options) {
|
||||||
|
const $lc = $(element)
|
||||||
let results = searchTool(query)
|
let results = searchTool(query)
|
||||||
|
|
||||||
|
if (query.length === 0 || !results.length) {
|
||||||
|
$lc.fadeOut()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let opt = options || {};
|
let opt = options || {};
|
||||||
|
|
||||||
const $lc = $(element)
|
|
||||||
$lc.data('result-type', resultType)
|
$lc.data('result-type', resultType)
|
||||||
|
|
||||||
if (opt.belowCursor) {
|
if (opt.belowCursor) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user