react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

No onCellSelected event fired on the first cell (0,0)

Open iamkennytso opened this issue 8 years ago • 5 comments


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.

iamkennytso avatar Oct 18 '18 22:10 iamkennytso

setting enableCellAutoFocus to false does not solve the problem neither

iamkennytso avatar Oct 19 '18 18:10 iamkennytso

Is there any update on this?

iamkennytso avatar Oct 24 '18 14:10 iamkennytso

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.

iamkennytso avatar Nov 02 '18 22:11 iamkennytso

Can someone throw a bug label on this ticket, please?

iamkennytso avatar Nov 20 '18 00:11 iamkennytso

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.

stale[bot] avatar Dec 20 '18 03:12 stale[bot]