Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC][UN-14097] Update click outside mixin #259

Merged
merged 2 commits into from
Aug 28, 2018

Conversation

migueldemoura
Copy link
Contributor

@migueldemoura migueldemoura commented Aug 27, 2018

https://uniplaces.atlassian.net/browse/UN-14097

Fixes click outside touch event on iOS.

@migueldemoura migueldemoura force-pushed the UN-14097/Offer-page-tooltip-issues branch 3 times, most recently from 3d7472c to bc5fd1e Compare August 27, 2018 10:52
@migueldemoura migueldemoura changed the title [WIP][UN-14097] Update click outside mixin [RFC][UN-14097] Update click outside mixin Aug 27, 2018
@@ -18,12 +17,16 @@ export default Mixin.create({
setupOutsideClickListener: on('didInsertElement', function() {
let clickHandler = this.get('handleOutsideClick').bind(this);

return $(document).on('click', clickHandler);
['click', 'touchend'].forEach((e) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

fits in 1 line

}),

removeOutsideClickListener: on('willDestroyElement', function() {
let clickHandler = this.get('handleOutsideClick').bind(this);

return $(document).off('click', run.cancel(this, clickHandler));
['click', 'touchend'].forEach((e) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

fits in 1 line

@AndreJoaquim AndreJoaquim merged commit f7b78ad into master Aug 28, 2018
@AndreJoaquim AndreJoaquim deleted the UN-14097/Offer-page-tooltip-issues branch August 28, 2018 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants