-
Notifications
You must be signed in to change notification settings - Fork 184
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
selectionchanged event fires on mouse move and doesn't fire at all if selectionMode is set to "row" #158
Comments
It should only fire when the selection changes, this sounds like a bug. The event should fire when rows are selected as well. |
Well, it seems to work correctly in, for example, http://jsfiddle.net/xz9tvbr8/1/. So, maybe there's something I'm doing that's stupid. I'll try to track this down. It does not trigger the selectionchanged event when a row is selected, however. |
Still a bug then, good to know it's not completely broken. This is the universal method that everything uses for setting individual row selection The embarrassingly complex I really can't think of a reason why it's set to Feel free to pick up this issue. Seems very easy to fix. Just gota make sure tests still pass. |
selectionchanged not fired when "columnHeaderClickBehavior" set to "select" too |
Thanks for the update. |
Expected behavior and actual behavior.
I would expect the "selectionchanged" event to only fire when the user selects rows with the mouse (by clicking or clicking and dragging a rubber band selection rectangle) or the keyboard by holding Ctrl or Shift keys and moving to additional cells. Instead, it seems to fire every time the mouse hovers over a cell. I also don't think that it fires reliably (or maybe not at all) if I click on the row header cell to select an entire row that way when not in "row" selectionMode.
When the selectionMode is set to "row", I'd expect the selectionChanged event to fire when the user clicks on a row, but instead it never fires at all in "row" selectionMode as far as I can tell.
Steps to reproduce the problem.
Add an event listener for the "selectionchanged" event and see that it triggers basically every time you move the mouse.
Set the selectionMode to "row" and see that the handler for "selectionchanged" never fires, even if you click on a row or rows.
Specifications like the version of the project, operating system, or hardware.
Latest version, Windows 10
The text was updated successfully, but these errors were encountered: