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

fix(doesNodeContainClick): only use x/y if !e.target #2494

Merged
merged 1 commit into from
Feb 5, 2018

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Feb 5, 2018

Fixes #2493

If the document contains the e.target, then rely on the node.contains(e.target) method for checking if a click was within a node.

Only in cases where the e.target is no longer in the document do we need to resort to measuring the click position.

@codecov-io
Copy link

codecov-io commented Feb 5, 2018

Codecov Report

Merging #2494 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2494   +/-   ##
=======================================
  Coverage   99.74%   99.74%           
=======================================
  Files         154      154           
  Lines        2711     2711           
=======================================
  Hits         2704     2704           
  Misses          7        7

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3341abd...a33fda2. Read the comment docs.

@levithomason levithomason force-pushed the fix/does-node-contain-click branch 2 times, most recently from 27fdc4e to 89217ef Compare February 5, 2018 04:11
@levithomason levithomason force-pushed the fix/does-node-contain-click branch from 89217ef to a33fda2 Compare February 5, 2018 06:24
@levithomason levithomason merged commit ae6a4d3 into master Feb 5, 2018
@levithomason levithomason deleted the fix/does-node-contain-click branch February 5, 2018 07:36
@levithomason
Copy link
Member Author

Released in [email protected].

Brantron pushed a commit to Brantron/Semantic-UI-React that referenced this pull request Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants