Skip to content

Commit 74c0ae7

Browse files
committed
fix(a11y): filter messages that are announced
1 parent fb2c760 commit 74c0ae7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/angular/a11y/src/queued-announcer/queued-announcer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export class QueuedAnnouncer {
1616

1717
constructor(private _liveAnnouncer: LiveAnnouncer) { }
1818

19-
enqueue(msg: string) {
19+
enqueue(msg: string | undefined) {
20+
if (!msg) { return; }
2021
this._msgQueue.push(msg);
2122

2223
if (!this._isAnnouncing) {

0 commit comments

Comments
 (0)