diff --git a/client/components/popover/README.md b/client/components/popover/README.md index 5a6227df346d0..ea55ab7a34213 100644 --- a/client/components/popover/README.md +++ b/client/components/popover/README.md @@ -42,6 +42,12 @@ The `position` property can be one of the following values: - `left` - `right` +#### `ignoreContext` + +The `ignoreContext` lets you specify an component that you want the when click on to be ignored. +In most cases this is not needed but if you want to also have a label that can trigger +the opening and closing of the Popover then you need to pass in the label component as a reference. + ### `Popover` Usage ```js diff --git a/client/components/popover/index.jsx b/client/components/popover/index.jsx index dbb0ed9adc683..cbf7099094a31 100644 --- a/client/components/popover/index.jsx +++ b/client/components/popover/index.jsx @@ -30,7 +30,8 @@ var Popover = React.createClass( { propTypes: { isVisible: React.PropTypes.bool.isRequired, onClose: React.PropTypes.func.isRequired, - position: React.PropTypes.string + position: React.PropTypes.string, + ignoreContext: React.PropTypes.element, }, getDefaultProps: function() {