Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit 3b9a16d

Browse files
Closure Teamkjin
authored andcommitted
Fix announcer say method for message undefined or null.
RELNOTES: n/a PiperOrigin-RevId: 297207505
1 parent 1c85fbc commit 3b9a16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

closure/goog/a11y/aria/announcer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ goog.a11y.aria.Announcer.prototype.say = function(message, opt_priority) {
8888
const announceMessage = this.lastMessageAnnounced_ === message ?
8989
message + goog.string.Unicode.NBSP :
9090
message;
91-
if (!goog.string.isEmptyString(message)) {
91+
if (message) {
9292
this.lastMessageAnnounced_ = announceMessage;
9393
}
9494
goog.dom.setTextContent(liveRegion, announceMessage);

0 commit comments

Comments
 (0)