Open FallingPineapples opened 2 years ago
@FallingPineapples Thank you for raising the issue, and I especially appreciate your thorough investigation!
I'm able to consistently reproduce this going back to RStudio Desktop 1.2.5042 on MacOS 12.1. We'll review this as we continue development of RStudio.
Triage note: This isn't a regression, so I'm marking this as a candidate for the Data Viewer redesign.
System details
Steps to reproduce the problem
After running the following code, clicking the magnifying glass to open the nested list will cause a Javascript alert:
Running this code will cause two Javascript alerts:
Describe the problem in detail
The problematic line is here: https://github.com/rstudio/rstudio/blob/74512a0ea3c92a8f10f1614dbc83d40bf5ad8e24/src/cpp/session/resources/grid/dtviewer.js#L332 The row name here is put directly into the HTML.
Describe the behavior you expected
I would expect this to use the row number instead of the row name. I don't know if this is available as commit e69526bf2dc96ea28c3151a3a99cb164c3969776 (part of the pull request that introduced the feature) intentionally changed this, possibly having some issues with the virtualized rows.