fix(client): popup not displayed for existing attributes (closes #5718)

This commit is contained in:
Elian Doran 2025-07-15 18:55:29 +03:00
parent 7cd0e664ac
commit aa8902f5b9
No known key found for this signature in database

View File

@ -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;
}