Thanks for sharing your experience. I tested on a table with much more data and I was able to replicate the race condition with the event handler when no 'Primary key' is set and the row selection is set on the component's settings:
The 4th row (i = 3) gets selected for a millisecon, then the first row is selected:
It looks like the event handler runs before the setting on the component. However, without row selection set on the component's settings, and a 'Primary key' selected, the event handler works every time.
I'm also seeing that this does not happen when the row selection is set with the settings from the first screenshot.