mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
This commit is contained in:
parent
ed7e5b7135
commit
0018632ee4
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue