openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.ui.table.TreeTable rowSelectionChange Infinite Loop

Open adrian-zguri opened this issue 9 years ago • 4 comments

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:

  1. Select the first row
  2. 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

adrian-zguri avatar Jun 12 '17 16:06 adrian-zguri

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

clemai avatar Jun 14 '17 09:06 clemai

Thank you Clemens.

Best Regards, Adrian

adrian-zguri avatar Jun 14 '17 09:06 adrian-zguri

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

ulasenka avatar Jun 14 '17 14:06 ulasenka

Hello Sergej, Thank you for your explanation. I will try another way since this feature is really important for us.

Best Regards, Adrian

adrian-zguri avatar Jun 14 '17 15:06 adrian-zguri