From 6fdec3049660a97dcf42819b16bfc01aa5764267 Mon Sep 17 00:00:00 2001 From: Steve 'Cutter' Blades Date: Mon, 11 Jul 2022 07:40:09 -0500 Subject: [PATCH] fix: correct popupOffset (#2218) Correct error when popupOffset is an object --- src/PopOverlay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PopOverlay.js b/src/PopOverlay.js index 3499bec62..65aadd0d2 100644 --- a/src/PopOverlay.js +++ b/src/PopOverlay.js @@ -22,7 +22,7 @@ function CalOverlay({ const popperRef = useRef(null) if (!overlay.position) return null - let offset + let offset = popupOffset if (!isNaN(popupOffset)) { offset = { x: popupOffset, y: popupOffset } }