Skip to content

Commit

Permalink
Update dist files and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbassit committed Oct 31, 2022
1 parent 0c3c469 commit 23c3748
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions dist/fancyselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@
searchString = '';
searchTimeout = null;
}

currentElement = null;
}

/**
Expand Down Expand Up @@ -415,11 +417,11 @@

// On click on the list box button
addListener(document, 'click', '.fsb-button', function (event) {
var isClickToClose = currentElement === event.target;

closeListBox();

if (currentElement === event.target) {
currentElement = null;
} else {
if (!isClickToClose) {
openListBox(event.target);
}

Expand Down Expand Up @@ -464,7 +466,6 @@

// On click on an item
addListener(document, 'click', '.fsb-option', function (event) {
currentElement = null;
selectItem(event.target);
closeListBox(true);
});
Expand Down
2 changes: 1 addition & 1 deletion dist/fancyselect.min.js

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

4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fancySelect",
"version": "0.3.1",
"version": "0.3.2",
"description": "A drop-in replacement for native HTML select elements.",
"author": "Momo Bassit",
"license": "MIT",
Expand Down

0 comments on commit 23c3748

Please sign in to comment.