Skip to content

Commit

Permalink
Merge branch 'michaelkix-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
silvenon committed Jun 13, 2018
2 parents 7a16b33 + d7b898d commit b5cc923
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/CSSTransition.js
Expand Up @@ -223,10 +223,12 @@ class CSSTransition extends React.Component {
reflowAndAddClass(node, className) {
// This is for to force a repaint,
// which is necessary in order to transition styles when adding a class name.
/* eslint-disable no-unused-expressions */
node && node.scrollTop;
/* eslint-enable no-unused-expressions */
addClass(node, className);
if (className) {
/* eslint-disable no-unused-expressions */
node && node.scrollTop;
/* eslint-enable no-unused-expressions */
addClass(node, className);
}
}

render() {
Expand Down

0 comments on commit b5cc923

Please sign in to comment.