debian-image-builder-frontend/src/Components/CreateImageWizard/steps
lucasgarfield c28e0d15b6 CreateImageWizard: Make steps autofocus on first input upon render
The default behavior of Data Driven Forms when moving to the previous or
next step is to maintain focus on the previous or next button,
respectively.

This commit makes the UI more friendly to keyboard users by focusing
on the first input element of a given step when it is rendered.

Whenever possible, autofocus is achieved by passing components the
autoFocus prop. When this is not possible, then useRef and useEffect hooks
are used to set focus.

At the moment, it is not possible to autofocus the image output step's
release selector or the file system configuration step's toggle using the
above methods. This is because these PatternFly components do not
currently pass props to the appropriate child component and do not
support ref forwarding. The best option for autofocus in these cases is
currently being investigated.
2022-03-25 15:47:48 +01:00
..
aws.js CreateImageWizard: Step template with id 2022-03-25 12:43:31 +01:00
details.js CreateImageWizard: Make steps autofocus on first input upon render 2022-03-25 15:47:48 +01:00
fileSystemConfiguration.js CreateImageWizard: Step template with id 2022-03-25 12:43:31 +01:00
googleCloud.js CreateImageWizard: Make steps autofocus on first input upon render 2022-03-25 15:47:48 +01:00
imageOutput.js CreateImageWizard: Step template with id 2022-03-25 12:43:31 +01:00
imageOutputStepMapper.js CreateImageWizard: rename google to gcp in form state 2022-03-23 12:30:42 +01:00
index.js CreateImageWizard: add image name field 2022-03-02 16:24:35 +01:00
msAzure.js CreateImageWizard: Make steps autofocus on first input upon render 2022-03-25 15:47:48 +01:00
packages.js CreateImageWizard: Step template with id 2022-03-25 12:43:31 +01:00
registration.js CreateImageWizard: Make steps autofocus on first input upon render 2022-03-25 15:47:48 +01:00
review.js CreateImageWizard: Step template with id 2022-03-25 12:43:31 +01:00
stepTemplate.js CreateImageWizard: Step template with id 2022-03-25 12:43:31 +01:00