Skip to content

Commit

Permalink
fix(OverlayTrigger): Add func as valid prop type for children (#5393)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang committed Aug 21, 2020
1 parent fc4555e commit 6d12869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OverlayTrigger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function handleMouseOverOut(
const triggerType = PropTypes.oneOf(['click', 'hover', 'focus']);

const propTypes = {
children: PropTypes.element.isRequired,
children: PropTypes.oneOfType([PropTypes.element, PropTypes.func]).isRequired,

/**
* Specify which action or actions trigger Overlay visibility
Expand Down

0 comments on commit 6d12869

Please sign in to comment.