When using React Hook Form with Prime React Password Component, if the Password component would throw an error, for example being empty with required set to true, then React Hook Form will throw an error and not be able to focus on the password field.
This only happens if the Password component is the ONLY field in error.
See sandbox - https://codesandbox.io/s/blissful-butterfly-pc6xhk?file=/src/App.js
I have not tested with other Prime React components such as dropdowns, checkbox etc.
I am aware that I could work around this by disabling the submit button until all fields are valid but this is not the preferred operation.
I'm not sure if this is an error with my implementation of the code hence the question here or whether it's underlying in either react-hook-form or prime-react?