Skip to content

Commit f6a7a89

Browse files
crisbetojosephperrott
authored andcommitted
fix(a11y): wrong order of constructor arguments in provider (#14078)
Fixes the constructor in the `LIVE_ANNOUNCER_PROVIDER` being called with the wrong arguments. Fixes #14077.
1 parent bd15024 commit f6a7a89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cdk/a11y/live-announcer/live-announcer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ export class CdkAriaLive implements OnDestroy {
161161

162162
/** @docs-private @deprecated @breaking-change 8.0.0 */
163163
export function LIVE_ANNOUNCER_PROVIDER_FACTORY(
164-
parentDispatcher: LiveAnnouncer, liveElement: any, _document: any, ngZone: NgZone) {
165-
return parentDispatcher || new LiveAnnouncer(liveElement, _document, ngZone);
164+
parentAnnouncer: LiveAnnouncer, liveElement: any, _document: any, ngZone: NgZone) {
165+
return parentAnnouncer || new LiveAnnouncer(liveElement, ngZone, _document);
166166
}
167167

168168

0 commit comments

Comments
 (0)