-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getCellFromEvent() not returning correct row when editing checkboxes with keyboard #62
Comments
I may very well be breaking other things with this solution:
and returning getCellFromEvent to it's previous implementation:
fixes the issue. Any thoughts? |
... in order to more gracefully handle the case where |
Also, I believe you are correct in thinking that With the current implementation in I have no need to use |
Hi - my first issue created on GitHub. Please let me know if the issue is unclear or the write-up is not optimal.
Using 2.0-frozenRowsAndColumns.
When a checkbox cell is selected and editable, clicking spacebar triggers a click and marks the checkbox as selected.
This triggers the slick.grid.js function:
handleClick(e)
Which calls
getCellFromEvent(e)
In the standard Slickgrid, the value of the selected cell is returned from getCellFromEvent().
In this fork, the row that is returned is based on which row the idle mouse is located on the grid.
If a user is using the keyboard, this means that the next line:
if (!cell || (currentEditor !== null && activeRow == cell.row && activeCell == cell.cell)) {
return;
}
will not execute the "return;", and will continue execution for an invalid click event.
This causes the onClick events to trigger for a cell which is not being edited or clicked.
The text was updated successfully, but these errors were encountered: