Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-14842] fix dismissing the tooltip when clicking the button #2660

Merged
merged 1 commit into from
Apr 17, 2019

Conversation

kosgrz
Copy link
Contributor

@kosgrz kosgrz commented Apr 15, 2019

Summary

This PR fixes dismissing the tooltip when clicking the button a few times on the Windows desktop app. It was caused by a bug in older versions of Chromium and currently used in Electron. Sometimes a click event fires a mouseleave event. I saw that this "self-fired" mouseleave event has null in the toElement property, so I just added a condition to hide the tooltip only if the toElement property of the mouseleave event is not null.

Tested on the Windows Desktop app on 4.3 and now it works as expected. I also tested it on Safari, Mac Desktop App, Chrome and Firefox just for sure.

Ticket Link

Fixes mattermost/mattermost#10603

@jasonblais jasonblais added 1: PM Review Requires review by a product manager 3: QA Review Requires review by a QA tester Setup Old Test Server Triggers the creation of a test server labels Apr 16, 2019
@jasonblais jasonblais self-requested a review April 16, 2019 00:10
@jasonblais jasonblais self-assigned this Apr 16, 2019
@ogi-m
Copy link

ogi-m commented Apr 16, 2019

Tested on the spinmint and confirmed the issue on the Windows desktop app is fixed.

Also tested on other environments to confirm it's still working as expected:

  • Windows - Chrome, Firefox, Desktop app
  • macOS - Safari, Desktop app

@jasonblais jasonblais added 2: Dev Review Requires review by a core commiter and removed 1: PM Review Requires review by a product manager 3: QA Review Requires review by a QA tester Setup Old Test Server Triggers the creation of a test server labels Apr 17, 2019
@jasonblais jasonblais removed their assignment Apr 17, 2019
@jasonblais jasonblais requested review from crspeller and levb April 17, 2019 00:07
@crspeller crspeller merged commit 4cfbc00 into mattermost:master Apr 17, 2019
@hanzei hanzei added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Apr 18, 2019
@hanzei hanzei added this to the v5.12.0 milestone Apr 18, 2019
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels May 16, 2019
@lindy65 lindy65 added Tests/Done Release tests have been written and removed 4: Reviews Complete All reviewers have approved the pull request labels Sep 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation Tests/Done Release tests have been written
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Help Wanted] [MM-14842] Desktop app: Clicking the tooltip button dismisses the tooltip (Windows)
8 participants