diff options
author | David Cho-Lerat <117642976+david-cho-lerat-sonarsource@users.noreply.github.com> | 2022-11-17 11:26:45 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-11-17 20:03:07 +0000 |
commit | 04d75741c1b20d0944d8907b4b2844cf7f19ca1b (patch) | |
tree | 9c44860c08da6aecad27d7bd1a783f2c5612ce80 /server | |
parent | fe9d9764559b5bd09b4acf6cfd9da2614e561cad (diff) | |
download | sonarqube-04d75741c1b20d0944d8907b4b2844cf7f19ca1b.tar.gz sonarqube-04d75741c1b20d0944d8907b4b2844cf7f19ca1b.zip |
SONAR-17606 Comment popover should not close on mouse out (#7066)
Diffstat (limited to 'server')
-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 1fc09edfe05..b3af496dc47 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('click', this.handleWindowClick); + window.addEventListener('mousedown', this.handleWindowClick); }; removeClickHandler = () => { - window.removeEventListener('click', this.handleWindowClick); + window.removeEventListener('mousedown', this.handleWindowClick); }; handleWindowClick = (event: MouseEvent) => { |