Currently the checkbox component has a test for autoFocus prop. Strait-forwardly this test would fail on a browser window that isn't focused, so the test has a condition that runs the test if it has focus and doesn't if not. This PR aims to fix a problem with the test not running on IE & Safari.
Currently the checkbox component has a test for autoFocus prop. Strait-forwardly this test would fail on a browser window that isn't focused, so the test has a condition that runs the test if it has focus and doesn't if not. This PR aims to fix a problem with the test not running on IE & Safari.