afterSelectionChange fires when selection is unchanged
The function registered with the grid option afterSelectionChange is called whenever selectItem is used regardless of whether the selection actually changed or not. I tweaked the selectItem demo plunker to demonstrate what I mean: http://plnkr.co/edit/rMmeiD.
Notice that repeated clicks of the "Select Enos Row" button (which is just selecting an already selected row after the first click) still increments the afterSelectionChange counter.
Is this intended behavior? Should I just be checking against the list of selectedItems to stop redundant calls to afterSelectionChange? Is there a better workaround?
To me it makes sense that afterSelectionChange would only be called if the selected row is actually changed. Otherwise it's just a row-click event, right?
Agreed.
If not, perhaps the name afterSelectionChange should be updated to reflect the fact that it may be called when the selection has not changed?