Skip to content

fix(ui): disable publish button if form is autosaving - #11343

Merged
AlessioGr merged 4 commits into
mainfrom
fix/form-autosave-button
Feb 27, 2025
Merged

AlessioGr merged 4 commits into
mainfrom
fix/form-autosave-button

Conversation

@AlessioGr

@AlessioGr AlessioGr commented Feb 22, 2025 •

Copy link
Copy Markdown
Member

Fixes #6648

This PR introduces a new useFormBackgroundProcessing hook and a corresponding setBackgroundProcessing function in the useForm hook.

Unlike useFormProcessing / setProcessing, which mark the entire form as read-only, this new approach only disables the Publish button during autosaving, keeping form fields editable for a better user experience.

I named it backgroundProcessing because it should run behind the scenes without disrupting the user. You could argue that it is a bit more generic than something like isAutosaving, but it signals intent: Background = do not disrupt the user.

@AlessioGr
AlessioGr merged commit 7118b64 into main Feb 27, 2025
@AlessioGr
AlessioGr deleted the fix/form-autosave-button branch February 27, 2025 17:28
@github-actions

github-actions Bot commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.26.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User can publish during Autosave

3 participants