mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +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()
|
getValue()
|
||||||
{
|
{
|
||||||
|
if(this.multiple){
|
||||||
let res:string[] = []
|
let res:string[] = []
|
||||||
if(this.selectedNodes?.length)
|
if(this.selectedNodes?.length)
|
||||||
for (const selectedNode of this.selectedNodes)
|
for (const selectedNode of this.selectedNodes)
|
||||||
{
|
{
|
||||||
res.push(selectedNode.id)
|
res.push(selectedNode.id)
|
||||||
}
|
}
|
||||||
return res
|
return res}
|
||||||
|
else {
|
||||||
|
this.getSelectedItem().id
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user