mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Et2Tree: Avoid error if onclick property was not set
This commit is contained in:
parent
51f23a0dcf
commit
cf8de8f108
@ -622,10 +622,12 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
|
||||
this._currentOption = this.getNode(event.detail.selection[0].id);
|
||||
event.detail.previous = this._previousOption.id;
|
||||
this._currentSlTreeItem = event.detail.selection[0];
|
||||
|
||||
if(typeof this.onclick == "function")
|
||||
{
|
||||
this.onclick(event.detail.selection[0].id, this, event.detail.previous)
|
||||
}
|
||||
}
|
||||
}
|
||||
@sl-expand=${
|
||||
(event) => {
|
||||
event.detail.id = event.target.id
|
||||
|
Loading…
Reference in New Issue
Block a user