Skip to content

Commit

Permalink
make sure that readyToAnnounce is true again even if predicate fails, #…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph authored and jessegreenberg committed Feb 7, 2023
1 parent 2f64e95 commit 76523c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/AriaLiveAnnouncer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ class AriaLiveAnnouncer extends Announcer {
this.readyToAnnounce = true;
}, AriaLiveAnnouncer.ARIA_LIVE_DELAY );
}
else {
this.readyToAnnounce = true; // If the predicate fails, we are ready to announce again.
}
}, 0 );
}

Expand Down

1 comment on commit 76523c3

@jessegreenberg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cherry-pick for phetsims/friction#331

Please sign in to comment.