Red Hat Bugzilla – Bug 1266449
[origin_userinterface_521]Didn't autofocus name field on create from image page
Last modified: 2016-12-02 12:29:27 EST
Description of problem:
Create application from image, after select builder image, it should automatically goes to create page and autofocus on name field, but on fork_ami, it didn't autofocus
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create some image streams
2.Click on one image, it will goes to create page
it didn't autofocus on name field
Should autofocus on name field on create image page
Can you also open developer tools before clicking the builder tile and check how long the page takes to load?
View -> Developer -> Developer Tools
Switch to the Network tab and then click XHR and take a screenshot.
I suspect it takes more than 300ms, which will interfere with the autofocus.
Tested on devenv-fedora_2411
$ openshift version
Still cann't autofocus on "Name".
Access on firefox 40 and chrome 47, there is wss warning info on image/template list page.
The time in XHR is about 400ms~500ms.
You can refer to the attachment.
Created attachment 1077845 [details]
Created attachment 1077846 [details]
Perfect, thanks. I think the problem is that the page takes a couple seconds to load fully for you. When content on the page is changes as requests complete, the name field loses focus. I'll have to think about a solution. I'm hesitant to force focus after so long because it's possible the user has interacted with the form already.
Closing as WONTFIX. See comment 5.
This only happens when the page takes more than a few seconds to load, and it could be annoying to change focus back to name if the user has tabbed out or changed something else in that time.