Skip to content

Commit

Permalink
[added] PropType validation for headerRole and panelRole
Browse files Browse the repository at this point in the history
Signed-off-by: Dominick Reinhold <dreinhold@pivotal.io>
Signed-off-by: Matt Royal <mroyal@pivotal.io>
  • Loading branch information
Kenny Wang authored and matt-royal committed Aug 21, 2015
1 parent 769781d commit adad32e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ const Panel = React.createClass({
footer: React.PropTypes.node,
defaultExpanded: React.PropTypes.bool,
expanded: React.PropTypes.bool,
eventKey: React.PropTypes.any
eventKey: React.PropTypes.any,
headerRole: React.PropTypes.string,
panelRole: React.PropTypes.string
},

getDefaultProps() {
Expand Down Expand Up @@ -203,7 +205,7 @@ const Panel = React.createClass({

renderCollapsibleTitle(header, headerRole) {
return (
<h4 className={this.prefixClass('title')}>
<h4 className={this.prefixClass('title')} role="presentation">
{this.renderAnchor(header, headerRole)}
</h4>
);
Expand Down

0 comments on commit adad32e

Please sign in to comment.