diff options
author | Revanshu Paliwal <revanshu.paliwal@sonarsource.com> | 2022-12-14 09:57:01 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-12-14 20:03:51 +0000 |
commit | 07219819ead9f5ee8a486334e60df575dc536811 (patch) | |
tree | 5d7a31b26504ffe74eb595021353d970a863d3de /server/sonar-web | |
parent | f790b6c6f8d7ddc0d8dd73d76ac416932e1d9fe2 (diff) | |
download | sonarqube-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.tsx | 4 |
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) => { |