Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Oct 8, 2023
1 parent 859bccf commit 865b027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PopoverWithoutOverlay/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 865b027

Please sign in to comment.