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 ff5cd42 commit 8a18248
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 @@ -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
Expand Down

0 comments on commit 8a18248

Please sign in to comment.