Skip to content

bug(LiveAnnouncer): not resolving promises #24686

Closed
@Makatumba

Description

@Makatumba

Description

Some LiveAnnouncer.announce('message') promises called more than once in sequence (with a delay < 100 ms) or in parallel are not resolved.

Reproduction

Use StackBlitz to reproduce your issue:
https://stackblitz.com/edit/angular-ivy-xn9hkc

Call LiveAnnouncer.announce('message') more than once in sequence (with a delay < 100 ms) or parallel.

Expected Behavior

All announce promises are either resolved or rejected.

Actual Behavior

Only the last announce promise is resolved. All promises before are never resolved.

Environment

  • Angular: 13.3.0
  • CDK/Material: 13.3.1
  • Browser(s): Chrome Version 99.0.4844.51
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions