mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
8ff299c1eb
commit
47c83388af
2 changed files with 6 additions and 4 deletions
|
|
@ -245,7 +245,9 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
|
|||
</div>`,
|
||||
destroyCallback() {
|
||||
focusByRange(range);
|
||||
hideElements(["select"], protyle);
|
||||
if (protyle) {
|
||||
hideElements(["select"], protyle);
|
||||
}
|
||||
}
|
||||
});
|
||||
dialog.element.setAttribute("data-key", Constants.DIALOG_ATTR);
|
||||
|
|
@ -264,7 +266,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
|
|||
target.classList.add("item--focus");
|
||||
dialog.element.querySelectorAll(".custom-attr").forEach((item: HTMLElement) => {
|
||||
if (item.dataset.type === target.dataset.type) {
|
||||
if (item.dataset.type === "NodeAttributeView" && item.innerHTML === "") {
|
||||
if (item.dataset.type === "NodeAttributeView" && item.innerHTML === "" && protyle) {
|
||||
renderAVAttribute(item, attrs.id, protyle);
|
||||
}
|
||||
item.classList.remove("fn__none");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue