aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>2022-12-14 09:57:01 +0100
committersonartech <sonartech@sonarsource.com>2022-12-14 20:03:51 +0000
commit07219819ead9f5ee8a486334e60df575dc536811 (patch)
tree5d7a31b26504ffe74eb595021353d970a863d3de /server/sonar-web
parentf790b6c6f8d7ddc0d8dd73d76ac416932e1d9fe2 (diff)
downloadsonarqube-07219819ead9f5ee8a486334e60df575dc536811.tar.gz
sonarqube-07219819ead9f5ee8a486334e60df575dc536811.zip
Revert "SONAR-17606 Comment popover should not close on mouse out (#7066)"
This reverts commit 6bd056db4e02a880c4b802dbb0066cb9ad736994.
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/components/controls/OutsideClickHandler.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/OutsideClickHandler.tsx b/server/sonar-web/src/main/js/components/controls/OutsideClickHandler.tsx
index b3af496dc47..1fc09edfe05 100644
--- a/server/sonar-web/src/main/js/components/controls/OutsideClickHandler.tsx
+++ b/server/sonar-web/src/main/js/components/controls/OutsideClickHandler.tsx
@@ -41,11 +41,11 @@ export default class OutsideClickHandler extends React.Component<Props> {
}
addClickHandler = () => {
- window.addEventListener('mousedown', this.handleWindowClick);
+ window.addEventListener('click', this.handleWindowClick);
};
removeClickHandler = () => {
- window.removeEventListener('mousedown', this.handleWindowClick);
+ window.removeEventListener('click', this.handleWindowClick);
};
handleWindowClick = (event: MouseEvent) => {