mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 20:38:49 +01:00
🎨 移除搜索条件后菜单不消失
This commit is contained in:
parent
4629e15f57
commit
e1afb0d231
1 changed files with 2 additions and 0 deletions
|
|
@ -707,6 +707,8 @@ const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element:
|
|||
menuElement.addEventListener("click", (event) => {
|
||||
if (hasClosestByMatchTag(event.target as HTMLElement, "svg")) {
|
||||
fetchPost("/api/storage/removeCriterion", {name: item.name.trim()});
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
menuElement.remove();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue