Skip to content

Commit

Permalink
fix: correct popupOffset (jquense#2218)
Browse files Browse the repository at this point in the history
Correct error when popupOffset is an object
  • Loading branch information
cutterbl authored Jul 11, 2022
1 parent e9e07e5 commit 6fdec30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PopOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down

0 comments on commit 6fdec30

Please sign in to comment.