Skip to content

Commit

Permalink
Update CSSTransition.js (#125)
Browse files Browse the repository at this point in the history
sorry but when running locally, I realized that classes variable has to be splitted before forEach :)
  • Loading branch information
adamborowski authored and jquense committed Jul 20, 2017
1 parent 3c36923 commit f5194d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CSSTransition.js
Expand Up @@ -7,7 +7,7 @@ import React from 'react';
import Transition from './Transition';
import { classNamesShape } from './utils/PropTypes';

const addClass = (node, classes) => classes.forEach(c => addOneClass(node, c));
const addClass = (node, classes) => classes.split(' ').forEach(c => addOneClass(node, c));

const propTypes = {
...Transition.propTypes,
Expand Down

0 comments on commit f5194d9

Please sign in to comment.