Task #8847
Only focus the username field if it has not been focused already
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.
Related issues
Associated revisions
[~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
- File LoginFocus.patch added
#4 Updated by Berit Hlubek almost 5 years ago
- File LoginFocus.patch added
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!