Skip to content

fix(zone.js): UNPATCHED_EVENTS and PASSIVE_EVENTS should be string[] not boolean#36258

Closed
JiaLiPassion wants to merge 1 commit intoangular:masterfrom
JiaLiPassion:zone-config-type-fix
Closed

fix(zone.js): UNPATCHED_EVENTS and PASSIVE_EVENTS should be string[] not boolean#36258
JiaLiPassion wants to merge 1 commit intoangular:masterfrom
JiaLiPassion:zone-config-type-fix

Conversation

@JiaLiPassion
Copy link
Copy Markdown
Contributor

@JiaLiPassion JiaLiPassion commented Mar 26, 2020

__zone_symbol__UNPATCHED_EVENTS and __zone_symbol__PASSIVE_EVENTS should be string[] type not boolean.
For example:

const config = window as ZoneGlobalConfigurations;
config.__zone_symbol__UNPATCHED_EVENTS = ['scroll'];
config.__zone_symbol__PASSIVE_EVENTS = ['scroll'];

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

Thank @tonivj5 for posting the issue.

@pullapprove pullapprove Bot requested a review from mhevery March 26, 2020 12:50
…not boolean

__zone_symbol__UNPATCHED_EVENTS and __zone_symbol__PASSIVE_EVENTS should be string[] type not boolean.
For example:
```
const config = window as ZoneGlobalConfigurations;
config.__zone_symbol__UNPATCHED_EVENTS = ['scroll'];
config.__zone_symbol__PASSIVE_EVENTS = ['scroll'];
```
@JiaLiPassion JiaLiPassion force-pushed the zone-config-type-fix branch from c2d717e to 2d71d8f Compare March 26, 2020 12:53
@tonivj5
Copy link
Copy Markdown

tonivj5 commented Mar 26, 2020

You're fast, boy 🚀 👀 👏

@JiaLiPassion JiaLiPassion added area: zones Issues related to zone.js target: major This PR is targeted for the next major release labels Mar 26, 2020
@ngbot ngbot Bot modified the milestone: needsTriage Mar 26, 2020
@mhevery mhevery added the action: merge The PR is ready for merge by the caretaker label Mar 30, 2020
@mhevery
Copy link
Copy Markdown
Contributor

mhevery commented Mar 30, 2020

presubmit

@alxhub alxhub closed this in 36e927a Apr 1, 2020
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators May 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: zones Issues related to zone.js cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants