mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix getValue() for single tree
This commit is contained in:
parent
1533f1321d
commit
317f2fdbb9
@ -356,13 +356,17 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
|
||||
*/
|
||||
getValue()
|
||||
{
|
||||
if(this.multiple){
|
||||
let res:string[] = []
|
||||
if(this.selectedNodes?.length)
|
||||
for (const selectedNode of this.selectedNodes)
|
||||
{
|
||||
res.push(selectedNode.id)
|
||||
}
|
||||
return res
|
||||
return res}
|
||||
else {
|
||||
this.getSelectedItem().id
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user