From 07219819ead9f5ee8a486334e60df575dc536811 Mon Sep 17 00:00:00 2001 From: Revanshu Paliwal Date: Wed, 14 Dec 2022 09:57:01 +0100 Subject: [PATCH] Revert "SONAR-17606 Comment popover should not close on mouse out (#7066)" This reverts commit 6bd056db4e02a880c4b802dbb0066cb9ad736994. --- .../src/main/js/components/controls/OutsideClickHandler.tsx | 4 ++-- 1 file 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 { } 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) => { -- 2.39.5