jcmcneal / react-step-wizard

A modern flexible step wizard component built for React.
MIT License
583 stars 126 forks source link

How to force focus on next steps #97

Closed raulvi closed 2 years ago

raulvi commented 2 years ago

I am not being able to set focus on my input controls after the first step,Is there a way to force that?

jcmcneal commented 2 years ago

Have you tried autofocus on your inputs? If that doesn't work you may have to use a ref with useEffect to trigger .focus() when the step is active.