[wp-trac] [WordPress Trac] #63281: Password field has wrongly focus on installations

WordPress Trac noreply at wordpress.org
Tue Apr 15 12:06:35 UTC 2025


#63281: Password field has wrongly focus on installations
-----------------------------+--------------------------------------------
 Reporter:  zodiac1978       |       Owner:  audrasjb
     Type:  defect (bug)     |      Status:  accepted
 Priority:  normal           |   Milestone:  6.9
Component:  Upgrade/Install  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:  ui, accessibility, javascript
-----------------------------+--------------------------------------------

Comment (by abcd95):

 Hi @zodiac1978,

 I can see that the change was introduced in
 [https://core.trac.wordpress.org/changeset/36176 36176], which reorganized
 script loading but didn't account for focus management between scripts.

 The reordering of scripts didn't work in my testing since `user-
 profile.js` uses a `setTimeout` while waiting for the `zxcvbn` password
 library to load.

 and I think the `!wp_is_mobile()` check prevents automatic focus on mobile
 because it automatically opens the keyboard, which can be disruptive
 experience.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63281#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list