Skip to content

Fix/submit button loader#6

Merged
preshin merged 2 commits into
mainfrom
fix/submit-button-loader
Apr 22, 2026
Merged

Fix/submit button loader#6
preshin merged 2 commits into
mainfrom
fix/submit-button-loader

Conversation

@preshin
Copy link
Copy Markdown
Owner

@preshin preshin commented Apr 22, 2026

No description provided.

preshin added 2 commits April 22, 2026 12:21
Route onSubmit through a beforeSubmit hook so the submit button stays
in its loading state until the caller's async work resolves, and emit
submitDone/submitError ourselves for schema-only/nosubmit forms where
formio would otherwise never emit them. Supports three onSubmit
patterns: promise-returning, legacy manual formio.emit('submitDone'|
'submitError'), and synchronous throws. Defensively reset submit-button
loading/disabled state at the end of every path so the spinner <i>
can't be left orphaned by internal formio redraws.

Bundle Bootstrap 5's .spinner-border rules into the default theme so
the loader is actually visible in hosts that don't load Bootstrap
(e.g. Ant Design apps) — formio's own CSS only ships the ✓/✗ glyphs.

Bump version to 2.0.3.

Made-with: Cursor
@preshin preshin self-assigned this Apr 22, 2026
@preshin preshin merged commit a82d5cd into main Apr 22, 2026
1 check passed
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