mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-27 09:24:06 +01:00
🚨
This commit is contained in:
parent
e98f0480ee
commit
16e1a90bfa
2 changed files with 3 additions and 3 deletions
|
|
@ -378,7 +378,7 @@ export const setRelationCell = (protyle: IProtyle, nodeElement: HTMLElement, tar
|
|||
if (target.classList.contains("b3-menu__item")) {
|
||||
const targetId = target.getAttribute("data-id");
|
||||
const separatorElement = menuElement.querySelector(".b3-menu__separator");
|
||||
const searchValue = menuElement.querySelector('input').value;
|
||||
const searchValue = menuElement.querySelector("input").value;
|
||||
if (target.getAttribute("draggable")) {
|
||||
if (!separatorElement.nextElementSibling.getAttribute("data-id") && !searchValue) {
|
||||
separatorElement.nextElementSibling.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue