I recently ran into an issue with the .Selected property resetting for the Modern Table component. After some troubleshooting I've been able to narrow down the cause of this issue, but no solution yet.
After consulting with Microsoft support they told me to make a post here, since the modern component development is handled through the forums (?!?).
Problem:
The Table.Selected property will break when the user has sorting enabled and then refreshes the source. This happens when updating the source using a form, but also when using Refresh(source).
How to recreate:
1. Modern Table with SharePoint as source (170 rows in my case)
2. Sort by ID descending.
3. Select one of the last records (e.a. 168)
4. Refresh data source of the table
5. Click record Result: Tabel.Selected will be Blank
Impact:
The intuitive Modern Table becomes unuseable for datasources which require a combination of sorting and updating