disabled button stays focused
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Tracking
()
People
(Reporter: silbermann.sebastian, Unassigned)
References
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
Steps to reproduce:
Disabled a focused button by setting button.disabled = true
.
https://jsfiddle.net/k8jgor3b/1/ to repro (should log "blurred" twice) using Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
Actual results:
button stays focused
Expected results:
button becomes disabled while firing blur events. Chrome 83 is behaving as such.
Comment 1•4 years ago
|
||
Hey Sebastian,
I tried to reproduce this issue with the latest version of Firefox Nightly 80.0a1 (2020-07-09), beta 79.0b5 and release 78.0.1 with the "button.disabled = true" but the button "Hello, Dave" was disabled/grayed out on all 3 for me and even Chrome.
Can you test the issue while in Safe Mode. You can find helpful info here : https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode .
Also a fresh new profile could help. You can find more about creating a new profile here : https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems#w_6-create-a-new-firefox-profile .
If possible, you can test this issue on the nightly build as well. Download the build from : https://www.mozilla.org/en-US/firefox/nightly/all/ .
Reporter | ||
Comment 2•4 years ago
|
||
but the button "Hello, Dave" was disabled/grayed out on all 3 for me and even Chrome.
This is what I observed as well. I didn't report that this wasn't disabled but that the disabled button is still focused.
I tried it on firefox 78 and I can still observe the reported behavior. To clarify the reported behavior:
On firefox it logs:
"BUTTON"
"blurred"
"BUTTON"
On chrome it logs:
"BUTTON"
"blurred"
"blurred"
"BODY"`
Comment 3•4 years ago
|
||
Setting a component for this issue/enhancement in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.
Updated•4 years ago
|
Updated•4 years ago
|
Description
•