-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
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
Labels
No labels