Heydon/on-demand-live-region

VoiceOver in Chrome pronounces text twice

Opened this issue ยท 2 comments

VoiceOver in Chrome pronounces text twice

Steps to reproduce

  • start VoiceOver on macOS
  • open the page in Chrome
  • focus on the first button with a Tab key
  • wait until VoiceOver starts pronouncing some meta text
  • click the button with mouse
  • wait till VoiceOver pronounces an updated text

Expected behaviour

Text is pronounced once.

Actual behaviour

Text is pronounced twice.

It's weird that if you add console.log to the place where live-region is updated, it runs once.

// Populate live region to trigger it
window.setTimeout(function () {
  console.log('๐Ÿ”Š', thingToSay);
  this.currentRegion.textContent = thingToSay
}.bind(this), delay)

Bug recording

https://youtu.be/GyFOZbg8K0M

I've got the same

@mryzio that's an issue with Chrome on Mac. Happens if you use both role and aria-live attributes.