diff --git a/api/js/etemplate/Et2Link/Et2LinkSearch.ts b/api/js/etemplate/Et2Link/Et2LinkSearch.ts index 2a97128fa7..4241fb1bcc 100644 --- a/api/js/etemplate/Et2Link/Et2LinkSearch.ts +++ b/api/js/etemplate/Et2Link/Et2LinkSearch.ts @@ -114,9 +114,15 @@ export class Et2LinkSearch extends Et2Select { item.textContent = title; item.classList.remove("loading"); + this.syncItemsFromValue(); + } + else + { + // Not already rendered, update the select option + this.requestUpdate("select_options"); + // update the displayed text + this.updateComplete.then(this.syncItemsFromValue); } - // update the displayed text - this.syncItemsFromValue(); }); } }