mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
fix(client): popup not displayed for existing attributes (closes #5718)
This commit is contained in:
parent
7cd0e664ac
commit
aa8902f5b9
@ -426,7 +426,7 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget implem
|
||||
curNode = curNode.previousSibling;
|
||||
|
||||
if ((curNode as ModelElement).name === "reference") {
|
||||
clickIndex += (curNode.getAttribute("notePath") as string).length + 1;
|
||||
clickIndex += (curNode.getAttribute("href") as string).length + 1;
|
||||
} else if ("data" in curNode) {
|
||||
clickIndex += (curNode.data as string).length;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user