Skip to content

Commit

Permalink
Disable form submit buttons once again (#1727)
Browse files Browse the repository at this point in the history
  • Loading branch information
jim authored Nov 2, 2024
1 parent c1a0ce7 commit f092c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/spectre_form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def button(label = nil, options = {})
end

def submit(label = nil, options = {}, &)
parent_button(label, options.deep_merge(type: "submit", class: "btn btn-primary btn-lg btn-block", data: {disable: true}), &)
parent_button(label, options.deep_merge(type: "submit", class: "btn btn-primary btn-lg btn-block", data: {turbo_disable: true}), &)
end

def errors(debug = false)
Expand Down

0 comments on commit f092c83

Please sign in to comment.