DataTable isSelected check performance improvement #4122
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Current behavior
if
this.selection
is [], it does not return false. Empty array is still true. It may need a extra&& this.selection.length > 0
.Expected behavior
It should properly return false if selection is empty. This may also affect performance because angular change detection calls this method for every row on every mouse click or even mouse move and it constantly triggers all the logic inside (a grid with a thousand rows could easily trigger it tens of thousands of times every second).
The text was updated successfully, but these errors were encountered: