Skip to content

Commit 1134c30

Browse files
authored
fix: updated useLayoutEffect dependencies (#3)
1 parent a7c287c commit 1134c30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function Pop({
4646
popperRef.current.style.top = `${topOffset}px`
4747
popperRef.current.style.left = `${leftOffset}px`
4848
// eslint-disable-next-line react-hooks/exhaustive-deps
49-
}, [offset.x, offset.y, target])
49+
}, [offset.x, offset.y, target, containerRef, popperRef])
5050

5151
const { width } = position
5252
const style = {

0 commit comments

Comments
 (0)