From 8a182484aa01962873d747b2479c541fdb549f66 Mon Sep 17 00:00:00 2001 From: dukenv0307 <129500732+dukenv0307@users.noreply.github.com> Date: Sun, 8 Oct 2023 15:30:37 +0700 Subject: [PATCH] Update src/components/PopoverWithoutOverlay/index.js Co-authored-by: Rajat Parashar --- src/components/PopoverWithoutOverlay/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/PopoverWithoutOverlay/index.js b/src/components/PopoverWithoutOverlay/index.js index 599d443a7b4a..12c5ee16a75f 100644 --- a/src/components/PopoverWithoutOverlay/index.js +++ b/src/components/PopoverWithoutOverlay/index.js @@ -47,9 +47,7 @@ function Popover(props) { firstRenderRef.current = false; return; } - if (firstRenderRef.current) { firstRenderRef.current = false; - } Modal.setCloseModal(props.isVisible ? () => props.onClose(props.anchorRef) : null); // We want this effect to run strictly ONLY when isVisible prop changes