Skip to content

Commit

Permalink
Popover: Updated readme and component with the new ignoreContext prop
Browse files Browse the repository at this point in the history
  • Loading branch information
enejb committed Nov 22, 2015
1 parent b2abe37 commit 5823d39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions client/components/popover/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion client/components/popover/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 5823d39

Please sign in to comment.