Closed robinwhittleton closed 7 years ago
Firefox bug closed as INVALID:
This is correct behaviour. Radio buttons do not get focused when clicked on Mac.
As I just wrote, I’m not sure this is the right thing to be doing any more. Probably better to close this PR rather than merge.
When a user clicks on an unselected radio button in Chrome it’ll fire two events:
click
and eitherfocus
orfocusin
depending on delegation status. In Firefox only theclick
event fires. Tabbing through the fields triggers the focus events properly in both browsers.We’re relying on the
focus
/focusin
events to set thefocused
class that the yellow outline hooks onto. If we want consistency in this visual behaviour between browsers we either need to find some other way of defining the class, or to trigger the focus state on click dynamically. This commit does the second.I think Firefox is technically in the wrong here according to the DOM 3 Events spec. At the end of the current click event section is this sentence:
I’ll file a bug.