Task #8847

Only focus the username field if it has not been focused already

Added by Bastian Waidelich about 5 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2010-07-13
Priority:Should have Due date:
Assigned To:Bastian Waidelich % Done:

0%

Category:-
Target version:-

Description

Since r4774 we have a nice autofocus feature in the TYPO3 login form.
I noticed one issue though:
If the page still loads while you're already typing the password, the focus will switch to the username field..
You can reproduce this by clearing your browser cache, calling http://latest.phoenix.demo.typo3.org/typo3/login and typing in the password field.
Maybe it already helps to move the JS to the top of the page.

LoginFocus.patch Magnifier (1 kB) Berit Hlubek, 2010-08-17 15:19

LoginFocus.patch Magnifier (550 Bytes) Berit Hlubek, 2010-08-17 16:09


Related issues

related to TYPO3.Neos - Task #8706: For the login screen, add an autofocus to the username Resolved 2010-07-06

Associated revisions

Revision 859483e9
Added by Berit Hlubek almost 5 years ago

[~TASK] TYPO3 (Login): Use JS for focus only if no input-field is focused, relates to #8847

Change-Id: If61588ee8c3026c3aebcbd3fe806768760c7d4e6

History

#1 Updated by Berit Hlubek almost 5 years ago

  • Assigned To changed from Berit Hlubek to Bastian Waidelich

I changed the JS and moved it a bit to the top.
As I couldn't reproduce the problem on my notebook I created a patch with the different JS, perhaps you could test whether the problem still exists in that version?

#2 Updated by Bastian Waidelich almost 5 years ago

Berit Jensen wrote:

Hi Berit,

As I couldn't reproduce the problem on my notebook I created a patch with the different JS,
perhaps you could test whether the problem still exists in that version?

Could you please upload the patch? ;)

Best,
Bastian

#3 Updated by Berit Hlubek almost 5 years ago

#4 Updated by Berit Hlubek almost 5 years ago

I added another version, like we discussed it would be nicer to just set the focus via JS if nothing already is on focus.

#5 Updated by Berit Hlubek almost 5 years ago

Committed this version to enable testing.

#6 Updated by Bastian Waidelich almost 5 years ago

  • Status changed from New to Resolved

Great, that fixed the issue for me.
Thanks, Berit!

Also available in: Atom PDF