From 4343fbca321af8c328163ad1d52ad26c60e3af35 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 4 Dec 2023 17:06:26 -0700 Subject: [PATCH] Fix unable to clear link value --- api/js/etemplate/Et2Link/Et2LinkSearch.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Link/Et2LinkSearch.ts b/api/js/etemplate/Et2Link/Et2LinkSearch.ts index dca9818082..3afe211da1 100644 --- a/api/js/etemplate/Et2Link/Et2LinkSearch.ts +++ b/api/js/etemplate/Et2Link/Et2LinkSearch.ts @@ -121,8 +121,7 @@ export class Et2LinkSearch extends Et2Select let item = this.select?.querySelector('[value="' + option.value + '"]'); if(item) { - // Replace instead of changing the whole thing to preserve LitElement marker comments - item.innerHTML = item.innerHTML.replace(Et2Link.MISSING_TITLE, title); + this.requestUpdate(); this.select.requestUpdate("value"); item.classList.remove("loading");