No onCellSelected event fired on the first cell (0,0)
Which version of React JS are you using?
☣️ Not officially supported, expect warnings and errors ☣️
- [x] v16.x.x
Which browser are you using?
- [x] Chrome
I'm submitting a ...
- [x] 🐛 Bug Report
Issue Details
- What the current behavior is
Clicking on the first cell on initial load won't fire
onCellSelected - What the desired behvaior is
Clicking on the first cell would fire
onCellSelected
https://i.gyazo.com/9081537ab112f2cb63fae1e84a74ad85.gif
This is reopening https://github.com/adazzle/react-data-grid/issues/1108 In the thread, having the first cell auto focused seemed to be a problem, so I tried adding a temporary dom element .focus() and then removing the temporary element, but the problem still persists. Not sure if it's a focus issue or not.
setting enableCellAutoFocus to false does not solve the problem neither
Is there any update on this?
The bug is that when loading an editable grid for the first time, clicking on the top left most cell does not trigger a onCellSelected event. This makes it so that custom editors will not load properly. This can be seen in the gif:
https://i.gyazo.com/9081537ab112f2cb63fae1e84a74ad85.gif
In the gif, I'm console logging whenever onCellSelected is triggered. When I click on the top left most cell a few times, nothing console logs. When I click on the second cell, it logs out, and then clicking back on the top left most cell logs as well.
Can someone throw a bug label on this ticket, please?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.