No Code Attached Yet bug
avatar ron4mac
ron4mac
14 Dec 2022

Steps to reproduce the issue

Bring up a login form (not module). Click on 'remember me' or forgot username or password (as well as create an account).

Expected result

The click causes the desired action.

Actual result

It takes two clicks for the action to occur.

System information (as much as possible)

Joomla 4.2.6, Mac OS, Safari/Chrome/Firefox

Additional comments

avatar ron4mac ron4mac - open - 14 Dec 2022
avatar joomla-cms-bot joomla-cms-bot - change - 14 Dec 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Dec 2022
avatar chmst
chmst - comment - 14 Dec 2022

Confirmed, but different on browsers.

avatar chmst chmst - change - 14 Dec 2022
Labels Added: bug
avatar chmst chmst - labeled - 14 Dec 2022
avatar brianteeman
brianteeman - comment - 28 Dec 2022

I cannot replicate this

avatar chmst
chmst - comment - 28 Dec 2022

http://j4.chmst.de/index.php/login test here

It is a menuitem to login page - if I open here and click "Forgot your Password" or even before, the validation is too quick.
EDIT: I am on firefox, win 11, similar on chrome, but there it is like a flash and then opens the next screen

avatar brianteeman
brianteeman - comment - 28 Dec 2022

ah - its the same as #26317 then?

avatar chmst
chmst - comment - 28 Dec 2022

Not sure - but it could really be the same.

avatar brianteeman
brianteeman - comment - 28 Dec 2022

same script - same problem

avatar JackKellyUK
JackKellyUK - comment - 3 Jan 2023

Looks to be the same issue as #32692. Looking into this I'm pretty sure this is happening because when you land on the page the Username field is selected, so if you attempt to click without entering a valid Username the blur (unfocus) event is triggered, showing the validation message and jumping the page.

Happy to work on a fix, but will need some guidance how it wants to be approached. These are the options I can think of:

  • A delay is added to the blur event function, just needs to long enough for the click event to fire
  • The validation message is absolute positioned, so it doesn't effect the flow of the page
  • The blur event is no longer used (unsure of an alternative)
avatar richard67 richard67 - change - 11 Feb 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-02-11 10:19:16
Closed_By richard67
avatar richard67 richard67 - close - 11 Feb 2023
avatar richard67
richard67 - comment - 11 Feb 2023

Closing as having a pull request. Please test #39838 . Thanks in advance.

Add a Comment

Login with GitHub to post a comment