Skip to content

Commit

Permalink
clear datalist before populating autocomplete options
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
  • Loading branch information
kartben committed Dec 27, 2024
1 parent cee205d commit 93dfe1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@

function populateAutocomplete(users) {
const datalist = document.getElementById("usernames");
datalist.innerHTML = "";
Object.keys(users)
.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()))
.forEach((username) => {
Expand Down

0 comments on commit 93dfe1a

Please sign in to comment.