Skip to content
Snippets Groups Projects
Commit fc01fa9a authored by Odin Johan Vatne's avatar Odin Johan Vatne
Browse files

Clear add member on successful add

(cherry picked from commit 3276a50c)
parent 7a56b280
Branches
No related tags found
No related merge requests found
...@@ -34,6 +34,7 @@ function addUser() { ...@@ -34,6 +34,7 @@ function addUser() {
} else { } else {
userBox.innerHTML += `<div class="user-bubble" onclick="removeUser(this,'${username}')">${data.name}</div>`; userBox.innerHTML += `<div class="user-bubble" onclick="removeUser(this,'${username}')">${data.name}</div>`;
input.value = "";
userSet.add(username); userSet.add(username);
errorBox.classList.add('hidden'); errorBox.classList.add('hidden');
updateForm(); updateForm();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment