Skip to content

Commit

Permalink
fix: fixes unit test errors (MWPW-128673)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmiqueo committed Mar 29, 2023
1 parent 096dc07 commit f72cc58
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/app.css

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions dist/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Chimera UI Libraries - Build 3/28/2023, 15:57:15
* Chimera UI Libraries - Build 3/29/2023, 08:16:28
*
*/
/******/ (function(modules) { // webpackBootstrap
Expand Down Expand Up @@ -53581,7 +53581,10 @@ var Paginator = function Paginator(props) {
} else {
nextPage = parseInt(target.firstChild.nodeValue, BASE_10);
}
target.closest('.consonant-Wrapper').scrollIntoView({ behavior: 'smooth' });
var caasWrapper = target.closest('.consonant-Wrapper');
if (caasWrapper && typeof caasWrapper.scrollIntoView === 'function') {
caasWrapper.scrollIntoView({ behavior: 'smooth' });
}
onClick(nextPage);
};

Expand Down
4 changes: 2 additions & 2 deletions dist/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.source.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion react/src/js/components/Consonant/Pagination/Paginator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ const Paginator = (props) => {
} else {
nextPage = parseInt(target.firstChild.nodeValue, BASE_10);
}
target.closest('.consonant-Wrapper').scrollIntoView({ behavior: 'smooth' });
const caasWrapper = target.closest('.consonant-Wrapper');
if (caasWrapper && typeof caasWrapper.scrollIntoView === 'function') {
caasWrapper.scrollIntoView({ behavior: 'smooth' });
}
onClick(nextPage);
};

Expand Down

0 comments on commit f72cc58

Please sign in to comment.