Using Chrome or Safari load the admin login page and their is focus on the Login field
BUT use firefox (tested on MAC) and there is no focus
Apparently this is a bug that used to exist and was fixed but has come back again
Googling it suggests that the attribute autofocus=true does not work in firefox and that focus should be done using javascript
Reason is JHtml::_('behavior.noframes');
and line
$document->addStyleDeclaration('html { display:none }');
EDIT: or the way like JS shows the HTML.
Without this line, that hides whole HTML before JS shows it, the field gets the focus like expected.
Adding script to loginform that tries to set a focus on an input doesn't work with this line active
neither inside
$(window).load(function(){
....focus();
nor inside
$(document).ready(function(){
....focus();
.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-12-17 18:49:35 |
Closed_By | ⇒ | brianteeman |
Closed as we have a PR - thanks
Confirmed that this happens on the Admin login page.
The autofocus does work just fine in Firefox (on Mac) on a frontend login page and when viewing a page with the login module on it.