Skip to content

Commit 36e927a

Browse files
JiaLiPassionalxhub
authored andcommitted
fix(zone.js): UNPATCHED_EVENTS and PASSIVE_EVENTS should be string[] not boolean (#36258)
__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 Close #36258
1 parent 9d8bb63 commit 36e927a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/zone.js/lib/zone.configurations.api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ interface ZoneGlobalConfigurations {
512512
* Users can achieve this goal by defining `__zone_symbol__UNPATCHED_EVENTS = ['scroll',
513513
* 'mousemove'];` before importing `zone.js`.
514514
*/
515-
__zone_symbol__UNPATCHED_EVENTS?: boolean;
515+
__zone_symbol__UNPATCHED_EVENTS?: string[];
516516

517517
/**
518518
* Define the event names of the passive listeners.
@@ -528,7 +528,7 @@ interface ZoneGlobalConfigurations {
528528
*
529529
* The preceding code makes all scroll event listeners passive.
530530
*/
531-
__zone_symbol__PASSIVE_EVENTS?: boolean;
531+
__zone_symbol__PASSIVE_EVENTS?: string[];
532532

533533
/**
534534
* Disable wrapping uncaught promise rejection.

0 commit comments

Comments
 (0)