diff --git a/src/Dropdown.js b/src/Dropdown.js index f9df070488..fe5b773e63 100644 --- a/src/Dropdown.js +++ b/src/Dropdown.js @@ -65,11 +65,6 @@ const propTypes = { */ open: PropTypes.bool, - /** - * A callback fired when the Dropdown closes. - */ - onClose: PropTypes.func, - /** * A callback fired when the Dropdown wishes to change visibility. Called with the requested * `open` value, the DOM event, and the source that fired it: `'click'`,`'keydown'`,`'rootClose'`, or `'select'`. @@ -256,7 +251,7 @@ class Dropdown extends React.Component { }); } - renderMenu(child, { id, onClose, onSelect, rootCloseEvent, ...props }) { + renderMenu(child, { id, onSelect, rootCloseEvent, ...props }) { let ref = c => { this.menu = c; }; if (typeof child.ref === 'string') { @@ -275,9 +270,7 @@ class Dropdown extends React.Component { labelledBy: id, bsClass: prefix(props, 'menu'), onClose: createChainedFunction( - child.props.onClose, - onClose, - this.handleClose, + child.props.onClose, this.handleClose, ), onSelect: createChainedFunction( child.props.onSelect, @@ -296,7 +289,6 @@ class Dropdown extends React.Component { disabled, pullRight, open, - onClose, onSelect, role, bsClass, @@ -335,7 +327,7 @@ class Dropdown extends React.Component { }); case MENU_ROLE: return this.renderMenu(child, { - id, open, pullRight, bsClass, onClose, onSelect, rootCloseEvent, + id, open, pullRight, bsClass, onSelect, rootCloseEvent, }); default: return child;