mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
fix unset this._currentOption prevents folder-change in mail, maybe it would be better to properly initialise this._currentOption
This commit is contained in:
parent
f913f2f890
commit
af7b4658e7
@ -627,7 +627,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
|
||||
.selection=${this.multiple ? "multiple" : "single"}
|
||||
@sl-selection-change=${
|
||||
(event: any) => {
|
||||
this._previousOption = this._currentOption
|
||||
this._previousOption = this._currentOption || this.getNode(this.value);
|
||||
this._currentOption = this.getNode(event.detail.selection[0].id);
|
||||
event.detail.previous = this._previousOption.id;
|
||||
this._currentSlTreeItem = event.detail.selection[0];
|
||||
@ -863,6 +863,4 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
|
||||
|
||||
}
|
||||
|
||||
customElements.define("et2-tree", Et2Tree);
|
||||
|
||||
|
||||
customElements.define("et2-tree", Et2Tree);
|
Loading…
Reference in New Issue
Block a user