Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable hasUnsavedChanges prop for now #1025

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

w1kman
Copy link
Contributor

@w1kman w1kman commented Dec 19, 2024

What this PR does / why we need it: When using the "Test" button in the CheckForm, the form is technically submitted but not saved. After testing, the formState is no longer "dirty", which results in the "Save" button being disabled and the "You have unsaved changes" dialog to not appear.

This fix removes the logic that disables the "Save" button when the formState is clean.
This fix DOES NOT resolve the fact that a user can navigate away from an unsaved check without getting prompted.

Which issue(s) this PR fixes:
Resolves #1024

Special notes for your reviewer:

@w1kman w1kman self-assigned this Dec 19, 2024
@w1kman w1kman requested a review from a team as a code owner December 19, 2024 18:57
@w1kman w1kman requested a review from VikaCep December 19, 2024 18:57
Copy link
Contributor

@VikaCep VikaCep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some tests need to be updated but this solution LGTM until we change the logic of the Test button not acting as a submit button.

@w1kman w1kman marked this pull request as draft December 20, 2024 07:40
@w1kman
Copy link
Contributor Author

w1kman commented Dec 20, 2024

Changed to draft as we did a rollback on main.

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.

Unable to Save check when using Test-button (adhoc test)
2 participants