Skip to content

Inert property not synchronous for NVDA+Chrome #120

@ptrin

Description

@ptrin

I'm not sure whether this is a bug per se but I wanted to inform you because it contradicts the documentation provided in the readme:

Using the inert property, however, is synchronous.

Looking at this code example:

     // Remove inert of next section
     nextSection.inert = false;
     // Focus first input in next section
-    this.focusFirstInput(nextSection);
+    setTimeout(() => {
+      this.focusFirstInput(nextSection);
+    }, 5);

For some reason, pressing Space on the button that triggered this code worked properly in Chrome with NVDA, but triggering it with Enter did not. After adding a short timeout, both the Space and Enter keys work as expected. Both Space and Enter worked without the timeout in VoiceOver+Safari.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions