You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following is a simplified version of the markup for PhET's ComboBox.
<h1>Testing</h1><divid='div'><h4id='heading'>Temperature</h4><buttonid='button' aria-labelledby='heading button'>degrees Celcius</button></div><ulrole="listbox"
aria-labelledby="heading"
tabindex="-1"
id='listbox'><litabindex="0" role="option">Kelvin</li><litabindex="0" role="option">degrees Celsius</li><litabindex="0" role="option">degrees Fahrenheit</li></ul><script>constlistbox=document.getElementById('listbox');constbutton=document.getElementById('button');// when the list box is clicked, update the name and then focus itlistbox.addEventListener('keydown',(event)=>{if(event.key==='Enter'){button.innerText=event.target.innerText;button.focus();}});</script>
NVDA reads the old value of the accessible name when focus is placed on the button after pressing "enter" on a list item. If you remove the aria-labelledby attribute from the <button>, the problem goes away.
We should submit a bug report to NV Access.
The text was updated successfully, but these errors were encountered:
From phetsims/greenhouse-effect#404
The following is a simplified version of the markup for PhET's ComboBox.
NVDA reads the old value of the accessible name when focus is placed on the button after pressing "enter" on a list item. If you remove the
aria-labelledby
attribute from the<button>
, the problem goes away.We should submit a bug report to NV Access.
The text was updated successfully, but these errors were encountered: