mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 14:32:34 +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()});
|
fetchPost("/api/storage/removeCriterion", {name: item.name.trim()});
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
menuElement.remove();
|
if (!menuElement.previousElementSibling && !menuElement.nextElementSibling) {
|
||||||
|
menuElement.parentElement.parentElement.remove();
|
||||||
|
} else {
|
||||||
|
menuElement.remove();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (config.layout !== item.layout) {
|
if (config.layout !== item.layout) {
|
||||||
|
Loading…
Reference in New Issue
Block a user