Et2LinkTo: Fix Link button did not show after selecting an entry

Broken by ba744d3292
This commit is contained in:
nathan 2024-05-21 10:45:17 -06:00
parent a127860ad6
commit e596d60395

View File

@ -437,7 +437,10 @@ export class Et2LinkTo extends Et2InputWidget(LitElement)
handleEntrySelected(event) handleEntrySelected(event)
{ {
// Could be the app, could be they selected an entry // Could be the app, could be they selected an entry
if(event.target == this.select._searchNode) if(event.target == this.select && (
typeof this.select.value == "string" && this.select.value ||
typeof this.select.value == "object" && this.select.value.id
))
{ {
this.classList.add("can_link"); this.classList.add("can_link");
this.link_button.focus(); this.link_button.focus();