@@ -15,7 +15,9 @@ var ListGroupItem = React.createClass({
1515 disabled : React . PropTypes . any ,
1616 header : React . PropTypes . node ,
1717 onClick : React . PropTypes . func ,
18- eventKey : React . PropTypes . any
18+ eventKey : React . PropTypes . any ,
19+ href : React . PropTypes . string ,
20+ target : React . PropTypes . string
1921 } ,
2022
2123 getDefaultProps : function ( ) {
@@ -30,7 +32,7 @@ var ListGroupItem = React.createClass({
3032 classes [ 'active' ] = this . props . active ;
3133 classes [ 'disabled' ] = this . props . disabled ;
3234
33- if ( this . props . href || this . props . onClick ) {
35+ if ( this . props . href || this . props . target || this . props . onClick ) {
3436 return this . renderAnchor ( classes ) ;
3537 } else {
3638 return this . renderSpan ( classes ) ;
@@ -85,7 +87,7 @@ var ListGroupItem = React.createClass({
8587 handleClick : function ( e ) {
8688 if ( this . props . onClick ) {
8789 e . preventDefault ( ) ;
88- this . props . onClick ( this . props . eventKey , this . props . href ) ;
90+ this . props . onClick ( this . props . eventKey , this . props . href , this . props . target ) ;
8991 }
9092 }
9193} ) ;
0 commit comments