remove active li after clicking update message

This commit is contained in:
Justin 2023-07-08 01:22:46 +08:00 committed by GitHub
parent 8d98c1b688
commit 04707cb9b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2812,6 +2812,7 @@ function updateSelectedMsg(){
const ulElement = document.getElementById("messages-features");
const activeListItem = ulElement.querySelector("li.active");
activeListItem.innerText = msg_name;
activeListItem.classList.remove("active");
theIndexOfMsg = null;
document.getElementById('updated-message-p').style.display = "block";
setTimeout(function hideElement() {