fixed issue with updatePopperPosition

This commit is contained in:
Peter Holmberg 2019-02-13 11:18:08 +01:00
parent 1c5118748a
commit 56f7cd9602

View File

@ -50,7 +50,7 @@ class Popper extends PureComponent<Props> {
// TODO: move modifiers config to popper controller
modifiers={{ preventOverflow: { enabled: true, boundariesElement: 'window' } }}
>
{({ ref, style, placement, arrowProps, scheduleUpdate }) => {
{({ ref, style, placement, arrowProps }) => {
return (
<div
onMouseEnter={onMouseEnter}
@ -65,11 +65,7 @@ class Popper extends PureComponent<Props> {
className={`${wrapperClassName}`}
>
<div className={className}>
{typeof content === 'string'
? content
: React.cloneElement(content, {
updatePopperPosition: scheduleUpdate,
})}
{typeof content === 'string' ? content : React.cloneElement(content)}
{renderArrow &&
renderArrow({
arrowProps,