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

MM-19506 Fix attaching files on devices with touch events #3996

Merged
merged 2 commits into from
Oct 21, 2019
Merged

Conversation

enahum
Copy link
Contributor

@enahum enahum commented Oct 18, 2019

Summary

The actual implementation will only trigger on click event, in case of devices with touch the click event will trigger when double tapping. Here we are listening for a touch end event to trigger the same behavior as a simple mouse click.

Ticket Link

https://mattermost.atlassian.net/browse/MM-19506

@enahum enahum added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Oct 18, 2019
@enahum enahum added this to the v5.17.0 milestone Oct 18, 2019
Copy link
Member

@saturninoabril saturninoabril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works as expected, except for suggestion on unit test.

components/file_upload/file_upload.test.jsx Outdated Show resolved Hide resolved
Copy link
Member

@saturninoabril saturninoabril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@saturninoabril saturninoabril added QA Review Done and removed 3: QA Review Requires review by a QA tester labels Oct 18, 2019
Copy link
Member

@cpoile cpoile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks @enahum !

@sudheerDev sudheerDev removed the 2: Dev Review Requires review by a core commiter label Oct 21, 2019
@enahum enahum merged commit 4b7dd17 into master Oct 21, 2019
@enahum enahum deleted the MM-19506 branch October 21, 2019 23:31
@mattermod mattermod added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Oct 21, 2019
enahum pushed a commit that referenced this pull request Oct 22, 2019
* Fix attaching files on devices with touch events

* Make better test for touch event
@amyblais amyblais added Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation labels Oct 22, 2019
brewsterbhg pushed a commit to brewsterbhg/mattermost-webapp that referenced this pull request Nov 11, 2019
…#3996)

* Fix attaching files on devices with touch events

* Make better test for touch event
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog/Done Required changelog entry has been written CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone Docs/Not Needed Does not require documentation QA Review Done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants