When using renderEditCell
in a column's definition, once the row is in edit mode, I face these two issues:
- None of the cells gets the focus
- Using the tab key on that cell has no effect: it should move to the next cell
If I comment out the renderEditCell
property, the first issue remains (but I think I can live with it), while the second issue is resolved.
My problem is that I need to render a custom component to allow editing long texts.
I've reproduced the issue in this sandbox.
What I've tried so far in addition to googling (with no results):
- Using the
useGridApiContext
andapiRef.current.setEditCellValue
. - Forcing the
tabIndex
prop; only later, I figured I should not touch it because the field is already in a wrapper element with atabIndex
anyway. - Reading the docs too many times. The Accessibility page does not go in details when it comes to the "edit" mode.