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.
I managed to solve this quite simply. I just went in and removed the data-disable-with from the button with the code:
$('#my-button').removeAttr('data-disable-with');
And then re-establishing the attribute when the form was ready to be submitted to prevent double clicks from creating duplicates.