Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
logeekal committed Aug 18, 2022
1 parent e5b29de commit add72f8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ export const WithHoverActions = React.memo<Props>(
}, [closePopOverTrigger]); // NOTE: the `closePopOverTrigger` dependency here will close the hover menu whenever `closePopOverTrigger` changes

useEffect(() => {
// in case of dynamic content i.e when the value of hoverContent changes,
// we will try to reposition the popover so that the content does not collide with screen edge.
if (isOpen) popoverRef?.current?.positionPopoverFluid();
}, [hoverContent, isOpen]);

Expand Down

0 comments on commit add72f8

Please sign in to comment.