Skip to content

Commit

Permalink
Update src/components/PopoverWithoutOverlay/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Rajat Parashar <[email protected]>
  • Loading branch information
dukenv0307 and parasharrajat authored Oct 8, 2023
1 parent 865b027 commit ff5cd42
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/PopoverWithoutOverlay/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ function Popover(props) {

// 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;
}
return;
}
if (firstRenderRef.current) {
Expand Down

0 comments on commit ff5cd42

Please sign in to comment.