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(eventStack): correct handling of removed targets #2117

Merged
merged 1 commit into from
Sep 25, 2017

Conversation

layershifter
Copy link
Member

Rel #2075#comment.

Changes:

  • eventStack now uses Map
  • corrected behaviour of unsub

@@ -49,10 +46,12 @@ class EventStack {
if (!isBrowser) return

const { target = document, pool = 'default' } = options
const eventTarget = this._find(target)
const eventTarget = this._find(target, false)
Copy link
Member Author

Choose a reason for hiding this comment

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

Before this change, _find created always new instance of EventTarget when it was removed

@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2117   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files         150      150           
  Lines        2596     2596           
=======================================
  Hits         2590     2590           
  Misses          6        6

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 c003fe9...40a2247. Read the comment docs.

@layershifter
Copy link
Member Author

@levithomason This problem looks quite critical to me. Can you review this and release 0.74.2?

@levithomason
Copy link
Member

Released in semantic-ui-react@0.74.2

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.

3 participants