-
Notifications
You must be signed in to change notification settings - Fork 124
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
Blur event do not triggered in FF for disabled control #231
Comments
I suggest this patch for the fixing the issue |
Hi @svoronuk, I'm not sure if I'm correctly seeing the problem. Are you saying that if a button has focus, and it is disabled, and then you tab away it will still have focus-visible applied? It doesn't seem like the polyfill is running in your demo (I don't see the .focus-visible class appearing). Could you add it? Also, would you mind posting your suggested fix as a github gist instead of a zip? http://gist.github.com/ |
I'm still seeing this problem today. I created a simple setup that demonstrates it: https://jsbin.com/gijuyatohe/1/edit?html,css,js,output |
This issue is still present in Firefox v120 with focus-visible v5.2.0. |
Hey @mcaskill, unfortunately we don't have any plans to update this polyfill (see the Support section of the README). Is it possible for you to migrate away from the polyfill? :focus-visible is supported in all browsers and has been in Firefox since v85 |
Switch from disabled control, e.g. button to enabled control, do not remove focusing style from disabled control.
Steps:
Result: Two elements marked like focused
DEMO: https://codesandbox.io/s/angry-lovelace-z8i6h?file=/src/index.js
The text was updated successfully, but these errors were encountered: