From e979ed140e4e92840822e2407ef043e4c2394acb Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Thu, 15 Nov 2018 14:16:26 +0100 Subject: [PATCH] panel-header: Unmount popper when not needed. --- public/app/core/components/Tooltip/Popper.tsx | 2 +- .../__snapshots__/Popover.test.tsx.snap | 22 ------------------- .../__snapshots__/Tooltip.test.tsx.snap | 22 ------------------- 3 files changed, 1 insertion(+), 45 deletions(-) diff --git a/public/app/core/components/Tooltip/Popper.tsx b/public/app/core/components/Tooltip/Popper.tsx index 69bfe2f5ff9..343f7ff35d9 100644 --- a/public/app/core/components/Tooltip/Popper.tsx +++ b/public/app/core/components/Tooltip/Popper.tsx @@ -36,7 +36,7 @@ class Popper extends PureComponent { )} - + {transitionState => ( {({ ref, style, placement, arrowProps }) => { diff --git a/public/app/core/components/Tooltip/__snapshots__/Popover.test.tsx.snap b/public/app/core/components/Tooltip/__snapshots__/Popover.test.tsx.snap index dee689fb9ab..b36a4fe9af9 100644 --- a/public/app/core/components/Tooltip/__snapshots__/Popover.test.tsx.snap +++ b/public/app/core/components/Tooltip/__snapshots__/Popover.test.tsx.snap @@ -12,27 +12,5 @@ exports[`Popover renders correctly 1`] = ` Button with Popover -
-
- Popover text -
-
-
`; diff --git a/public/app/core/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap b/public/app/core/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap index 6dacaa7247f..c7d680049f4 100644 --- a/public/app/core/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap +++ b/public/app/core/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap @@ -15,27 +15,5 @@ exports[`Tooltip renders correctly 1`] = ` Link with tooltip -
-
- Tooltip text -
-
-
`;