mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-29 11:46:09 +01:00
This commit is contained in:
parent
a755778ba9
commit
36150f3eb0
1 changed files with 2 additions and 2 deletions
|
|
@ -701,8 +701,8 @@ const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element:
|
|||
<span class="fn__space"></span>
|
||||
<svg class="b3-menu__icon" style="width: 8px"><use xlink:href="#iconClose"></use></svg>
|
||||
</div>`,
|
||||
bind(element) {
|
||||
element.addEventListener("click", (event) => {
|
||||
bind(menuElement) {
|
||||
menuElement.addEventListener("click", (event) => {
|
||||
if (hasClosestByMatchTag(event.target as HTMLElement, "svg")) {
|
||||
fetchPost("/api/storage/removeCriterion", {name: element.textContent.trim()});
|
||||
window.siyuan.menus.menu.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue