mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 04:48:48 +01:00
🎨 搜索条件删空以后应该隐藏
This commit is contained in:
parent
d235b18462
commit
a71b43fb87
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue