mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 移除搜索条件后菜单不消失
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user