From adad32eeeeb4f5ad51f11bc0e28b2aa492eacddc Mon Sep 17 00:00:00 2001 From: Kenny Wang Date: Thu, 20 Aug 2015 12:28:16 -0700 Subject: [PATCH] [added] PropType validation for headerRole and panelRole Signed-off-by: Dominick Reinhold Signed-off-by: Matt Royal --- src/Panel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Panel.js b/src/Panel.js index 53c5f9e36a..d77946437e 100644 --- a/src/Panel.js +++ b/src/Panel.js @@ -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() { @@ -203,7 +205,7 @@ const Panel = React.createClass({ renderCollapsibleTitle(header, headerRole) { return ( -

+

{this.renderAnchor(header, headerRole)}

);