mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Et2Tree: Fix searching options did not search children properly
This commit is contained in:
parent
f8596793ca
commit
64fd79b788
@ -476,7 +476,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
|
|||||||
{
|
{
|
||||||
if(_id == undefined){debugger;}
|
if(_id == undefined){debugger;}
|
||||||
// TODO: Look into this._search(), find out why it doesn't always succeed
|
// 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)
|
this.refreshItem(_id, null)
|
||||||
} else*/
|
} else*/
|
||||||
{
|
{
|
||||||
let item = this.getNode(_id)
|
let item = this.getNode(_id);
|
||||||
return this.handleLazyLoading(item).then((result) => {
|
return this.handleLazyLoading(item).then((result) => {
|
||||||
item.item = [...result.item]
|
item.item = [...result.item]
|
||||||
this.requestUpdate("_selectOptions")
|
this.requestUpdate("_selectOptions")
|
||||||
|
Loading…
Reference in New Issue
Block a user