Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(PopoverContent): add x-out-of-boundaries attribute
Closes #1835
  • Loading branch information
khanilov authored and iamandrewluca committed May 21, 2020
1 parent e1915e8 commit 607ce10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PopperContent.js
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 607ce10

Please sign in to comment.