Skip to content

Commit

Permalink
Fix close when selected
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriTimoz committed Apr 23, 2024
1 parent 1a08d2a commit 996f5a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/scripts/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ function autocomplete(inp, arr) {

closeAllLists();
updatePath(inp.path);
const autocomplete_div = document.getElementsByClassName("autocomplete")[0];
autocomplete_div.classList.remove("unfolded-autocomplete");
autocomplete_div.classList.add("folded-autocomplete");


});
listContainer.appendChild(item);
Expand Down Expand Up @@ -152,6 +156,7 @@ function autocomplete(inp, arr) {
x[i].parentNode.removeChild(x[i]);
}
}

}

document.addEventListener("click", function (e) {
Expand Down

0 comments on commit 996f5a3

Please sign in to comment.