Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next element not annouced when active element is hidden #12807

Closed
Calidus opened this issue Sep 3, 2021 · 9 comments
Closed

Next element not annouced when active element is hidden #12807

Calidus opened this issue Sep 3, 2021 · 9 comments

Comments

@Calidus
Copy link

Calidus commented Sep 3, 2021

When the active element gets hidden, NVDA will not announce the next element in Chrome.

  • NVDA does not have this issue with Firefox.
  • JAWS does not have this issue with Chrome.

This maybe related to #11980

Repo:

JS Fiddle - https://jsfiddle.net/fh7ywocL/8/

Steps to reproduce:

  1. Open Chrome
  2. Go to https://jsfiddle.net/fh7ywocL/8/
  3. Focus the Results section/window
  4. Press the down arrow to announce the first button
  5. Press enter to hide the first button
  6. Press the down arrow

Expected behavior:
NVDA should announce the second button

Actual behavior:
NVDA announces the third button

System configuration
NVDA installed/portable/running from source:
Installed

NVDA version:
2020.1

Windows version:
Microsoft Windows 10 Pro
Version 10.0.19043 Build 19043

Name and version of other software in use when reproducing the issue:
Latest version of Chrome

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, 2020.4 also has this issue

If addons are disabled, is your problem still occurring?
Yes

Did you try to run the COM registry fixing tool in NVDA menu / tools?
No

@Calidus Calidus changed the title Next element not annouced when active element is hiddent Next element not annouced when active element is hidden Sep 3, 2021
@feerrenrut
Copy link
Contributor

Please specify if you are in browse or focus mode when reproducing. The two modes operate differently and this will help to clear up any misconceptions.

@Calidus
Copy link
Author

Calidus commented Sep 7, 2021

Browse mode

@feerrenrut
Copy link
Contributor

This looks like a duplicate of #6606
I'll leave this open because this seems to describe a different setup.

@Adriani90
Copy link
Collaborator

This is still reproducible in Firefox 111 with NVDA last alpha even after #14611 has been merged. In Crhomium this works as expected now.

cc: @jcsteh

@Calidus
Copy link
Author

Calidus commented Apr 14, 2023

This is still reproducible in Firefox 111 with NVDA last alpha even after #14611 has been merged. In Crhomium this works as expected now.

cc: @jcsteh

When you say Chromium works as expected now, is that the NVDA last alpha or 2023.1?

@Adriani90
Copy link
Collaborator

Adriani90 commented Apr 14, 2023 via email

@jcsteh
Copy link
Contributor

jcsteh commented Apr 16, 2023

The expected behaviour is not correct here. When you remove the first button, NVDA has to place the cursor somewhere - it can't be nowhere - so it places it as near as it can, which is now the second button. It can't remain on the first button because the first button no longer exists. Since the cursor is on the second button (which you can confirm by reading the current line), pressing down arrow will take you to the third button. This is consistent across both browsers.

@Adriani90
Copy link
Collaborator

The only difference that I can find here is that in Chrome NVDA announces automatically the second button when the focus is redirected to it after removing the first buttom from the DOM. In Firefox NVDA does not report the second button automatically when the focus lands on it after activating the first button.

@jcsteh
Copy link
Contributor

jcsteh commented Apr 17, 2023

Focus is actually redirected to the document, not the second button. For me, this fact was reported inconsistently in both browsers. I think there is a race condition here where pressing the first button focuses it, then it gets clicked, then focus goes to the document. It's possible that NVDA receives the focus event for the first button after the button is already destroyed, in which case things get a bit weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants