Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
fix(PopoverCard): Don't apply hidden popover positions, #112
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Sep 30, 2020
1 parent d36db77 commit 8dd8084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PopoverCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const PopoverCard = forwardRef((props, ref) => {
return (
<Portal targetElement={renderInPlace ? null : undefined}>
<AnimatedCard
ref={ref}
ref={renderWhenClosed && !isOpen ? null : ref}
forwardedAs={Component}
variant={variant || theme === 'dark' ? 'inverted' : 'raised'}
size="small"
Expand Down

0 comments on commit 8dd8084

Please sign in to comment.