Skip to content
Snippets Groups Projects
Unverified Commit 0c690cc4 authored by Gustavo Saiani's avatar Gustavo Saiani Committed by GitHub
Browse files

Fix Popover proptypes (#16560)

parent e2e6abdc
Branches
Tags
No related merge requests found
......@@ -31,7 +31,6 @@ export default class Popover extends Component {
isOpen: PropTypes.bool,
hasArrow: PropTypes.bool,
hasBackground: PropTypes.bool,
// target: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
tetherOptions: PropTypes.object,
// used to prevent popovers from being taller than the screen
sizeToFit: PropTypes.bool,
......@@ -58,10 +57,10 @@ export default class Popover extends Component {
onClose: PropTypes.func,
className: PropTypes.string,
style: PropTypes.object,
children: PropTypes.element,
children: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
dismissOnClickOutside: PropTypes.func,
dismissOnEscape: PropTypes.func,
target: PropTypes.object,
target: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
targetEvent: PropTypes.object,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment