diff --git a/Popover.js b/Popover.js index a937b01..c55cf9e 100644 --- a/Popover.js +++ b/Popover.js @@ -37,6 +37,7 @@ var Popover = React.createClass({ propTypes: { isVisible: PropTypes.bool, onClose: PropTypes.func, + onBgPress:PropTypes.func }, getInitialState() { return { @@ -59,6 +60,7 @@ var Popover = React.createClass({ arrowSize: DEFAULT_ARROW_SIZE, placement: 'auto', onClose: noop, + onBgPress:noop }; }, measureContent(x) { @@ -345,7 +347,9 @@ var Popover = React.createClass({ return ( - + + +