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 behaviour was changed in Rails 5, now it's disabling submits by default.
Rather than accepted answer, I would suggest to use the following configuration:
config.action_view.automatically_disable_submit_tag = false
or, to do it ad-hoc for specific buttons, add this to the submit button
data: { disable_with: false }