Skip to content

Commit

Permalink
feat(PopoverContent): add x-out-of-boundaries attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
khanilov committed May 12, 2020
1 parent e1915e8 commit 248c3f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PopperContent.js
Expand Up @@ -43,7 +43,7 @@ const defaultProps = {
onClosed: noop,
fade: true,
transition: {
...Fade.defaultProps,
...Fade.defaultProps,
}
};

Expand Down Expand Up @@ -151,8 +151,8 @@ class PopperContent extends React.Component {
modifiers={extendedModifiers}
placement={placement}
>
{({ ref, style, placement, arrowProps }) => (
<div ref={ref} style={style} className={popperClassName} x-placement={placement}>
{({ ref, style, placement, outOfBoundaries, arrowProps }) => (
<div ref={ref} style={style} className={popperClassName} x-placement={placement} x-out-of-boundaries={outOfBoundaries ? 'true' : undefined}>
{children}
{!hideArrow && <span ref={arrowProps.ref} className={arrowClassName} style={arrowProps.style} />}
</div>
Expand Down

0 comments on commit 248c3f5

Please sign in to comment.