I have a Rails Devise form that has javascript validation. When the user presses submit, the validation works and the user is refocused on the form where they need to be.
This was helpful to give me a hint on what to look for. If anyone is looking how to correct this in your html.erb file, this was my solution:
<%= f.submit 'Submit', data: { disable_with: false } %>