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

Unhooking events only if necessary #52

Closed
wants to merge 2 commits into from
Closed

Unhooking events only if necessary #52

wants to merge 2 commits into from

Conversation

marcellobarile
Copy link
Contributor

Iterating over the map even when empty was causing the following error in certain conditions:

React: 16.6.0
TypeScript: 3.1.5

(Webpack config)
module: "esnext"
target: "es5"
lib: ["es2015", "dom", "esnext"]


Uncaught TypeError: Failed to execute 'removeEventListener' on 'EventTarget': The callback provided as parameter 2 is not an object.
at scrollbar.js:85
at Array.forEach ()
at ScrollBar.componentWillUnmount (scrollbar.js:84)
[...]

Iterating over the map even when empty was causing the following error in certain conditions:

React: 16.6.0
TypeScript: 3.1.5

(Webpack config)
module: "esnext"
target: "es5"
lib: ["es2015", "dom", "esnext"]

-----------------------------------------------------------------------------------------------------

Uncaught TypeError: Failed to execute 'removeEventListener' on 'EventTarget': The callback provided as parameter 2 is not an object.
    at scrollbar.js:85
    at Array.forEach (<anonymous>)
    at ScrollBar.componentWillUnmount (scrollbar.js:84)
[...]
@goldenyz
Copy link
Owner

goldenyz commented Nov 5, 2018

Please use v1.4.1

@goldenyz goldenyz closed this Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants