Vanessa 2024-05-09 16:55:36 +08:00
parent ed7e5b7135
commit 0018632ee4

View file

@ -22,7 +22,9 @@ export const initMessage = () => {
} else if (target.tagName === "A" || target.tagName === "BUTTON") {
break;
} else if (target.classList.contains("b3-snackbar")) {
hideMessage(target.getAttribute("data-id"));
if (getSelection().rangeCount === 0 || !getSelection().getRangeAt(0).toString()) {
hideMessage(target.getAttribute("data-id"));
}
event.preventDefault();
event.stopPropagation();
break;