-
Notifications
You must be signed in to change notification settings - Fork 1
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(EventTarget): fix subscription to events #4
Conversation
…into chore/fix-subscription
Codecov Report
@@ Coverage Diff @@
## master #4 +/- ##
==========================================
- Coverage 98.72% 95.68% -3.04%
==========================================
Files 13 7 -6
Lines 469 116 -353
Branches 26 27 +1
==========================================
- Hits 463 111 -352
+ Misses 1 0 -1
Partials 5 5
Continue to review full report at Codecov.
|
"plugins": [ "istanbul" ] | ||
"plugins": [ | ||
["istanbul", { "exclude": ["src/**/*.spec.{ts,tsx}"] }] | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove useless coverage from tests
@@ -70,6 +71,7 @@ | |||
"release:major": "yarn prerelease && release-it major", | |||
"release:minor": "yarn prerelease && release-it minor", | |||
"release:patch": "yarn prerelease && release-it patch", | |||
"serve": "serve lib", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows to serve the UMD build
|
||
this.handlers.set(eventType, handler) | ||
this.target.addEventListener(eventType, handler) | ||
this.target.addEventListener(eventType, handler, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
useCapture=true
the one of important changes there
Manual checks
|
Refs: Semantic-Org/Semantic-UI-React#3006
Details: Semantic-Org/Semantic-UI-React#3124 (comment)