mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
aaefba2789
commit
dd34f25b94
1 changed files with 6 additions and 0 deletions
|
|
@ -502,6 +502,12 @@ export const setFilter = async (options: {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
listElement.addEventListener("click", (event) => {
|
||||||
|
if (hasClosestByClassName(event.target as Element, "b3-list-item")) {
|
||||||
|
inputElement.value = listElement.querySelector(".b3-list-item--focus").textContent.replace(/\n/g, " ");
|
||||||
|
listElement.classList.add("fn__none");
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (filterValue.type === "number") {
|
} else if (filterValue.type === "number") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue