Skip to content

Commit

Permalink
ListGroup now inherits classes from props
Browse files Browse the repository at this point in the history
  • Loading branch information
jingchan committed Feb 9, 2015
1 parent 9e0772c commit 307b3c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ListGroup.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var React = require('react');
var joinClasses = require('./utils/joinClasses');
var classSet = require('./utils/classSet');
var cloneWithProps = require('./utils/cloneWithProps');

Expand All @@ -12,7 +13,7 @@ var ListGroup = React.createClass({

render: function () {
return (
<div className="list-group">
<div className={joinClasses(this.props.className, "list-group")}>
{ValidComponentChildren.map(this.props.children, this.renderListItem)}
</div>
);
Expand Down

0 comments on commit 307b3c3

Please sign in to comment.