Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

fix/NEX-1158/firefox-keyboard-focus #2

Closed
wants to merge 6 commits into from

Conversation

svoronuk
Copy link

@svoronuk svoronuk commented Jun 15, 2020

Related to: WICG#231

Changes:

  • Unfocusing active element before buttons disabling

Steps to reproduce:

  • Render non-linear test
  • Using KB navigation set focus on an navigation bar item
  • Press Enter button
  • Start pressing TAB when test item loading is in progress

How to test fix:

  • Repeat steps to reproduce
  • Visually check that focusing border removed from item on start loading

Reason:

When Enter button pressed and test item starts to load, each navbar button is switched to disabled state.
If in this moment button is focused, than it loses this focus without firing blur event

DEMO: https://codesandbox.io/s/angry-lovelace-z8i6h?file=/src/index.js

@svoronuk svoronuk closed this Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant