Et2Tree: Fix searching options did not search children properly

This commit is contained in:
nathan 2024-07-23 16:13:58 -06:00
parent f8596793ca
commit 64fd79b788

View File

@ -476,7 +476,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
{
if(_id == undefined){debugger;}
// TODO: Look into this._search(), find out why it doesn't always succeed
return this._search(_id, this._selectOptions) ?? this.optionSearch(_id, this._selectOptions, 'value', 'children')
return this._search(_id, this._selectOptions) ?? this.optionSearch(_id, this._selectOptions, 'id', 'item')
}
/**
@ -553,7 +553,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
this.refreshItem(_id, null)
} else*/
{
let item = this.getNode(_id)
let item = this.getNode(_id);
return this.handleLazyLoading(item).then((result) => {
item.item = [...result.item]
this.requestUpdate("_selectOptions")