Skip to content

Commit

Permalink
v1.1.7
Browse files Browse the repository at this point in the history
- fixed: issues #4  and #6
  • Loading branch information
LCweb-ita committed Oct 18, 2022
1 parent abeb5c9 commit 0c9c577
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 8 deletions.
13 changes: 9 additions & 4 deletions lc_select.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* lc_select.js - Superlight Javascript dropdowns
* Version: 1.1.6
* Version: 1.1.7
* Author: Luca Montanari (LCweb)
* Website: https://lcweb.it
* Licensed under the MIT license
Expand Down Expand Up @@ -440,7 +440,10 @@
// close other opened dropdowns
if(document.querySelector("#lc-select-dd")) {
document.querySelector("#lc-select-dd").remove();
active_trigger.classList.remove('lcslt_dd-open');

if(active_trigger) {
active_trigger.classList.remove('lcslt_dd-open');
}
}

// close if already opened
Expand Down Expand Up @@ -562,7 +565,7 @@
if(has_searchbar) {
code +=
'<ul><li class="lcslt-search-li">' +
'<input type="text" name="lcslt-search" value="" placeholder="'+ options.labels[0] +' .." autocomplete="off" />' +
'<input type="text" name="lcslt-search" value="" placeholder="'+ options.labels[0] +'" autocomplete="off" />' +
'</li></ul>';
}

Expand Down Expand Up @@ -799,7 +802,9 @@
document.querySelector('.lc-select-dd-scroll').insertAdjacentHTML('beforeend', '<li class="lcslt-no-results"><span>'+ options.labels[3] +'</span></li>');
}
} else {
no_results_li.remove();
if(no_results_li) {
no_results_li.remove();
}
}
}
};
Expand Down
4 changes: 2 additions & 2 deletions lc_select.min.js

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "LCweb",
"name": "lc-select",
"version": "1.1.5",
"version": "1.1.7",
"description": "Superlight vanilla javascript plugin, for modern web dropdowns. Supporting multi-options, search and images. Designed to be seamlessly themed",
"keywords": [
"javascript",
Expand All @@ -22,7 +22,6 @@
"lc_select.min.js",
"themes"
],
"dependencies": {},
"devDependencies": {},
"contributors": [
{
Expand Down

0 comments on commit 0c9c577

Please sign in to comment.