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

Social Signup: Handle the case where users block third-party cookies/data #13983

Merged
merged 14 commits into from
May 29, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Switch from current() to currentTarget to find the button when ho…
…vering
  • Loading branch information
pento authored and drewblaisdell committed May 24, 2017
commit 111f090726e03e470ede1d286dcf08af9ab3155a
5 changes: 2 additions & 3 deletions client/components/social-buttons/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import React, { Component, PropTypes } from 'react';
import { loadScript } from 'lib/load-script';
import { localize } from 'i18n-calypso';
import closest from 'component-closest';

/**
* Internal dependencies
Expand Down Expand Up @@ -93,7 +92,7 @@ class GoogleLoginButton extends Component {
if ( this.state.error ) {
this.setState( {
showError: ! this.state.showError,
errorRef: closest( event.target, '.social-buttons__button', true ),
errorRef: event.currentTarget,
} );

return;
Expand All @@ -115,7 +114,7 @@ class GoogleLoginButton extends Component {

this.setState( {
showError: true,
errorRef: closest( event.target, '.social-buttons__button', true ),
errorRef: event.currentTarget,
} );
}

Expand Down