Skip to content

Commit

Permalink
Check for keepMounted
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Apr 16, 2024
1 parent 67c7da5 commit 270dc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-base/src/useTooltip/useTooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function useTooltip(params: UseTooltipParameters): UseTooltipReturnValue
const noAnimation =
parseFloat(computedStyles.transitionDuration) === 0 &&
computedStyles.animationName === 'none';
if (noAnimation) {
if (noAnimation && !keepMounted) {
setMounted(false);
}
}
Expand Down

0 comments on commit 270dc46

Please sign in to comment.