I found that if I define a component renderer within a render function, state updates cause the focus to be lost. I found this issue in the underlying library as well.
Tested this in my app and with TableBody outside of the render function the focus is retained.
I found that if I define a component renderer within a render function, state updates cause the focus to be lost. I found this issue in the underlying library as well.
Tested this in my app and with TableBody outside of the render function the focus is retained.
Simplified Example:
https://codesandbox.io/s/aged-meadow-54jt9?file=/src/index.js