Checkbox: focus not properly activated on click
See original GitHub issueSteps
- Add a checkbox:
<Checkbox label="Label"/>
- Click the checkbox or the label.
Expected Result
The checkbox should get focus. onFocus
should be triggered.
Actual Result
On Windows 7 64-bit:
Firefox 51.0.1 (32-bit): The checkbox does not get focus. onFocus
is not triggered.
Chromium 58.0.3009.0 (64-bit): The checkbox does not get focus. onFocus
is not triggered.
Internet Explorer 11.0.9600.18537: onFocus
is triggered (as well as onBlur
), but the focus is not visible.
In all three browsers the focus works as expected when using the tab key.
Checkboxes in core Semantic UI work as expected.
Version
0.64.8
Testcase
Issue Analytics
- State:
- Created 7 years ago
- Comments:22 (19 by maintainers)
Top Results From Across the Web
Jquery focus() with checkboxes problem - input - Stack Overflow
I would try click. focus may have issues with the checkbox. the event may happen before the check/tick is rendered. May cause it...
Read more >Checkbox - Accessibility Matters
The checkbox can be activated only by clicking on the box only. If the user clicked on the text, it won't be activated....
Read more >Focus management with Vue refs - Learn web development
Activate the "Edit" button by pressing Enter . The checkbox will be replaced with our edit component, but the focus outline will be...
Read more >Styling checkboxes and radio buttons with CSS
The change in border colour clearly indicates the active or focused element, so we can disable the default outline. Note that we add...
Read more >Focusing: focus/blur - The Modern JavaScript Tutorial
An element receives the focus when the user either clicks on it or uses the Tab key on the keyboard. There's also an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try googling it 😉
@skleeschulte Thanks for feedback, seems we really overlooked something.
Expected behaviour