This commit is contained in:
Vanessa 2024-11-29 11:57:58 +08:00
parent e98f0480ee
commit 16e1a90bfa
2 changed files with 3 additions and 3 deletions

View file

@ -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();