Skip to content

Adding a configuration option to use turbo_submits_with - #803

Open
pardeyke wants to merge 5 commits into
bootstrap-ruby:mainfrom
pardeyke:turbo-submits-with-config
Open

pardeyke wants to merge 5 commits into
bootstrap-ruby:mainfrom
pardeyke:turbo-submits-with-config

Conversation

@pardeyke

Copy link
Copy Markdown

Add custom content to a submit button while the request is processing.
Try c.turbo_submits_with = :spinner to check out the build-in spinner or pass a custom html string.

Caveat: Only works on form.primary or form.button as form.submit renders a input file which only accepts a string and not a html element. Settings this also overrides render_as_button on form.primary

Screenshot 2025-11-27 at 01 17 11

Supersedes #781, moved to a dedicated branch so my fork's main can track upstream.

🤖 Generated with Claude Code

pardeyke and others added 5 commits November 27, 2025 01:14
Co-authored-by: Larry Reid <lcreid@jadesystems.ca>
Sort the json gem in the Rails 8.0 gemfile, split the spinner markup
across several lines and replace the redundant merge! in Submit#button.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@pardeyke pardeyke closed this Oct 22, 2026
@pardeyke
pardeyke deleted the turbo-submits-with-config branch October 22, 2026 12:52
@pardeyke
pardeyke restored the turbo-submits-with-config branch October 22, 2026 12:53
@pardeyke pardeyke reopened this Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant