sap.ui.table.TreeTable rowSelectionChange Infinite Loop
OpenUI5 version:
- latest Browser/version (+device/version):
- chrome latest, firefox latest Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible):
- JSFiddle: https://jsfiddle.net/er7618qp/
User/password (if required and possible - do not post any confidential information here):
- No
Steps to reproduce the problem:
- Select the first row
- Open the console
What is the expected result?
- Selecting the root row of the table, the sub element should be selected as well since it is child of the first row
What happens instead?
- Infinite Loop with RowIndex always 0 and UserInteraction always to true
Any other information? (attach screenshot if possible)
- I would have expected, after calling the method setSelectedIndex that the RowIndex would be the new one and the parameter UserInteraction would be false
Hi @adrian-zguri ,
thanks for the reported issue! I've created a internal ticket (1780199044) and dispatched it to the responsible colleagues.
You can check its status on GitHub.
Regards, Clemens
Thank you Clemens.
Best Regards, Adrian
the provided JSFiddle has bad code in lines 32-33.
Never change a value in a value change event - this is a cause of all possible infinite loops. Example: change the scroll position of a scroll container during the scroll event and see what happens.
Selection of a complete sub tree of a tree table is not implemented.
Kind regards, Sergej
Hello Sergej, Thank you for your explanation. I will try another way since this feature is really important for us.
Best Regards, Adrian