Skip to content

Commit 2fcf9e7

Browse files
crisbetoandrewseguin
authored andcommittedNov 14, 2018
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 1ffa1fc commit 2fcf9e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ export class CdkAriaLive implements OnDestroy {
216216

217217
/** @docs-private @deprecated @breaking-change 8.0.0 */
218218
export function LIVE_ANNOUNCER_PROVIDER_FACTORY(
219-
parentDispatcher: LiveAnnouncer, liveElement: any, _document: any, ngZone: NgZone) {
220-
return parentDispatcher || new LiveAnnouncer(liveElement, _document, ngZone);
219+
parentAnnouncer: LiveAnnouncer, liveElement: any, _document: any, ngZone: NgZone) {
220+
return parentAnnouncer || new LiveAnnouncer(liveElement, ngZone, _document);
221221
}
222222

223223

0 commit comments

Comments
 (0)
Please sign in to comment.