From 865b027194fd64e70fe275bc9d8128a21ba85b04 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Sun, 8 Oct 2023 15:13:42 +0700 Subject: [PATCH] update comment --- src/components/PopoverWithoutOverlay/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PopoverWithoutOverlay/index.js b/src/components/PopoverWithoutOverlay/index.js index ce81c404f25a..5fe3e7a15004 100644 --- a/src/components/PopoverWithoutOverlay/index.js +++ b/src/components/PopoverWithoutOverlay/index.js @@ -42,7 +42,7 @@ function Popover(props) { } Modal.willAlertModalBecomeVisible(props.isVisible); - // We prevent setting closeModal function to null when the first time the component is rendered + // We prevent setting closeModal function to null when the component is invisible the first time it is rendered if ((prevIsVisible === props.isVisible) && (!firstRenderRef.current || !props.isVisible)) { if (firstRenderRef.current) { firstRenderRef.current = false;