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

Commit 4c3b1ac

Browse files
committed
feat: expose forceUpdate method
1 parent be4d0dc commit 4c3b1ac

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ children: ({|
9494
isReferenceHidden: ?boolean,
9595
hasPopperEscaped: ?boolean,
9696
update: () => void,
97+
forceUpdate: () => void,
9798
arrowProps: {
9899
ref: (?HTMLElement) => void,
99100
style: { [string]: string | number },

src/Popper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ export class InnerPopper extends React.Component<PopperProps, PopperState> {
249249
isReferenceHidden,
250250
hasPopperEscaped,
251251
update: this.update,
252+
forceUpdate: this.popperInstance ? this.popperInstance.forceUpdate : null,
252253
arrowProps: {
253254
ref: this.setArrowNode,
254255
style: this.getArrowStyle(),

0 commit comments

Comments
 (0)