Skip to content

Commit

Permalink
STCOM-1203: Reset the loading state for the sparse array in MCLRender…
Browse files Browse the repository at this point in the history
…er, not just the non-sparse. (#2128)
  • Loading branch information
Dmytro-Melnyshyn committed Sep 27, 2023
1 parent 8b1948a commit a39edd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
* Add `current` for `selectList` and `container` refs due to removal of dom-helpers dependency. Refs STCOM-1199.
* Fix focus of first row and prevent multiple focus calls in MCLRenderer. Fixes STCOM-1202.
* Move prev/next pagination outside of MCL's scrollable div. Refs STCOM-1115.
* Reset the `loading` state for the sparse array in `MCLRenderer`, not just the non-sparse. Fixes STCOM-1203.

## [11.0.0](https://github.com/folio-org/stripes-components/tree/v11.0.0) (2023-01-30)
[Full Changelog](https://github.com/folio-org/stripes-components/compare/v10.3.0...v11.0.0)
Expand Down
1 change: 1 addition & 0 deletions lib/MultiColumnList/MCLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ class MCLRenderer extends React.Component {
newState.loading = false;
} else {
newState.firstIndex = parseInt(Object.keys(contentData)[0], 10) || 0;
newState.loading = false;
}
} else if (pagingType === pagingTypes.LOAD_MORE || pagingType === pagingTypes.PREV_NEXT) {
// this.focusTargetIndex can be 0, so we need to check for undefined
Expand Down

0 comments on commit a39edd2

Please sign in to comment.