Description
Steps to reproduce:
- Open NVDA and a browser (tested in Chrome, Edge).
- Navigate to a file input with an aria-describedby reference to an error message.
- Upload a file with an invalid type (e.g., upload a .txt file when only images are allowed).
- Observe that NVDA does not immediately announce the error message.
- Press Tab to move focus away from the input.
- Press Shift + Tab to move focus back to the file input.
- Now NVDA announces the error message correctly.
🔗 Live Demo (CodeSandbox): CodeSandbox Reproduction
Actual behavior:
• NVDA does not announce the error message immediately when an invalid file is uploaded.
• The error message is only announced after tabbing away and back to the file input.
• Other screen readers (e.g., VoiceOver on Mac) announce the error message immediately without requiring a focus change.
Expected behavior:
• NVDA should immediately announce the error message referenced by aria-describedby after an invalid file is uploaded.
• The expected announcement should be:
“Upload file. Invalid file type.”
• No focus change (Tab → Shift+Tab) should be needed to trigger the announcement.
NVDA logs, crash dumps and other attachments:
N/A – This is a screen reader announcement issue, not a crash.
System configuration
NVDA installed/portable/running from source:
Installed version.
NVDA version:
Tested on NVDA 2024.4.2. (latest at time of testing).
Windows version:
Windows 10 & Windows 11 (both tested).
Name and version of other software in use when reproducing the issue:
• Google Chrome (l133.0.6943.60.)
• Other screen readers tested: VoiceOver (Mac) → Works as expected
Other information about your system:
Other questions
Does the issue still occur after restarting your computer?
Yes.
Have you tried any other versions of NVDA? If so, please report their behaviors.
Yes, the issue persists in older and latest versions.
If NVDA add-ons are disabled, is your problem still occurring?
Yes, this issue is unrelated to add-ons.
Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?
Yes.
Activity