From d7f8f7d997c9c3dfe2a9cdbca5ebda3c2514a8bc Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 7 Dec 2022 15:51:50 -0700 Subject: [PATCH] Fix editing link remark did not load current value --- api/js/etemplate/Et2Link/Et2LinkList.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/js/etemplate/Et2Link/Et2LinkList.ts b/api/js/etemplate/Et2Link/Et2LinkList.ts index 5ee984c82e..bac932b1ba 100644 --- a/api/js/etemplate/Et2Link/Et2LinkList.ts +++ b/api/js/etemplate/Et2Link/Et2LinkList.ts @@ -582,9 +582,10 @@ export class Et2LinkList extends Et2LinkString { // Append "" to make sure it's a string, not undefined remark.classList.remove("loading"); - // Update internal data - link.comment = comment + ""; - remark.value = link.comment; + // Update internal data & displayed comment + remark.value = link.remark = comment + ""; + // Update link widget + remark.parentElement.querySelector("et2-link").value = link; } }); }