Skip to content

Commit 7c904c5

Browse files
committed
fixing issue with empty loading state in Dash 3 that would continuously trigger large selections even though they were triggered by the grid initially
1 parent d65ae9e commit 7c904c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/fragments/AgGrid.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ export default class DashAgGrid extends Component {
782782
// Call the API to select rows unless the update was triggered by a selection made in the UI
783783
if (
784784
!equals(selectedRows, prevProps.selectedRows) &&
785-
!(loading_state && this.selectionEventFired)
785+
!(loading_state ? (loading_state && this.selectionEventFired) : this.selectionEventFired)
786786
) {
787787
if (!this.dataUpdates) {
788788
setTimeout(() => {

0 commit comments

Comments
 (0)