Rails data-disable-with re-enabling button

前端 未结 4 1096
情深已故
情深已故 2021-01-31 03:32

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.

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-31 04:14

    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 } %>

提交回复
热议问题