You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/11/26 06:51:48 UTC
[GitHub] [royale-asjs] aharui commented on issue #584: AdvancedDataGrid
focus issue (selectedIndex should be last selectedIndex after saving)
aharui commented on issue #584: AdvancedDataGrid focus issue (selectedIndex should be last selectedIndex after saving)
URL: https://github.com/apache/royale-asjs/issues/584#issuecomment-558487527
The dataProvider is being changed which causes the renderers to be refreshed. I was trying to debug into the code to see what caused the dataProvider to be changed, but then someone logged into the VDI and kicked me out, so I'm going to stop doing any VDI work since it is near the end of my work day anyway.
Ideally, the dataProvider would not be changed. I can see that it contains the same data, but I think it is a new instance. But also, the DataGrid code doesn't currently check to see if any of the renderers are selected. If it did, you probably wouldn't notice. So if there is a good reason to change the dataProvider, then I recommend changing AdvancedDataGridItemRenderer to check the selectedIndex before choosing a background color.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services