aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-web/src/main/js/app/components/extensions/exposeLibraries.ts2
-rw-r--r--server/sonar-web/src/main/js/components/controls/Tooltip.tsx7
2 files changed, 5 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/app/components/extensions/exposeLibraries.ts b/server/sonar-web/src/main/js/app/components/extensions/exposeLibraries.ts
index 879f2f0ef62..b39b7a7b81e 100644
--- a/server/sonar-web/src/main/js/app/components/extensions/exposeLibraries.ts
+++ b/server/sonar-web/src/main/js/app/components/extensions/exposeLibraries.ts
@@ -19,6 +19,7 @@
*/
import { FormattedMessage } from 'react-intl';
import NotFound from '../../../app/components/NotFound';
+import DonutChart from '../../../components/charts/DonutChart';
import ActionsDropdown, { ActionsDropdownItem } from '../../../components/controls/ActionsDropdown';
import BoxedTabs from '../../../components/controls/BoxedTabs';
import {
@@ -193,6 +194,7 @@ const exposeLibraries = () => {
DateTimeFormatter,
DeferredSpinner,
DetachIcon,
+ DonutChart,
Dropdown,
DropdownIcon,
DuplicationsRating,
diff --git a/server/sonar-web/src/main/js/components/controls/Tooltip.tsx b/server/sonar-web/src/main/js/components/controls/Tooltip.tsx
index 79facbd7945..b5e5f663e38 100644
--- a/server/sonar-web/src/main/js/components/controls/Tooltip.tsx
+++ b/server/sonar-web/src/main/js/components/controls/Tooltip.tsx
@@ -269,11 +269,10 @@ export class TooltipInner extends React.Component<TooltipProps, State> {
if (this.mounted && this.props.visible === undefined && !this.mouseIn) {
this.setState({ visible: false });
}
+ if (this.props.onHide && !this.mouseIn) {
+ this.props.onHide();
+ }
}, (this.props.mouseLeaveDelay || 0) * 1000);
-
- if (this.props.onHide) {
- this.props.onHide();
- }
}
};