mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 01:21:08 +08:00
🎨 搜索条件删空以后应该隐藏
This commit is contained in:
parent
d235b18462
commit
a71b43fb87
@ -709,7 +709,11 @@ const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element:
|
||||
fetchPost("/api/storage/removeCriterion", {name: item.name.trim()});
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
menuElement.remove();
|
||||
if (!menuElement.previousElementSibling && !menuElement.nextElementSibling) {
|
||||
menuElement.parentElement.parentElement.remove();
|
||||
} else {
|
||||
menuElement.remove();
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (config.layout !== item.layout) {
|
||||
|
Loading…
Reference in New Issue
Block a user