Fix missing entry title in writable Et2LinkEntry when value is set from content

Timing issue, sometimes title gets back later than we'd like but in this case getting title earlier wasn't working.
This commit is contained in:
nathan 2022-07-18 15:27:31 -06:00
parent b7623cb284
commit 0d85b3ee48

View File

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