Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 48197a7

Browse files
wyoziFezVrasta
authored andcommitted
fix: recreate popper instance when popperNode changes (#211)
1 parent ef2b2b3 commit 48197a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Popper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class InnerPopper extends React.Component<PopperProps, PopperState> {
7979
safeInvoke(this.props.innerRef, popperNode);
8080
this.popperNode = popperNode;
8181

82-
if (!this.popperInstance) this.updatePopperInstance();
82+
this.updatePopperInstance();
8383
};
8484

8585
setArrowNode = (arrowNode: ?HTMLElement) => {

0 commit comments

Comments
 (0)