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