make the image preview go away when sending

master
Aevann 2024-11-13 03:51:14 +02:00
parent 776662a5db
commit 5528299c69
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ function send() {
input.previousElementSibling.className = "fas fa-file"; input.previousElementSibling.className = "fas fa-file";
input.previousElementSibling.textContent = ""; input.previousElementSibling.textContent = "";
} }
image_preview.classList.add('d-none');
image_preview.classList.remove('mr-2');
} }