We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82be4a4 commit 9f495dbCopy full SHA for 9f495db
src/lib/fragments/AgGrid.react.js
@@ -902,10 +902,12 @@ export default class DashAgGrid extends Component {
902
onSelectionChanged() {
903
setTimeout(() => {
904
if (!this.pauseSelections) {
905
- // Flag that the selection event was fired
906
- this.selectionEventFired = true;
907
const selectedRows = this.state.gridApi.getSelectedRows();
908
- this.customSetProps({selectedRows});
+ if (!equals(selectedRows, this.props.selectedRows)) {
+ // Flag that the selection event was fired
+ this.selectionEventFired = true;
909
+ this.customSetProps({selectedRows});
910
+ }
911
}
912
}, 1);
913
0 commit comments