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

Adjust useForm to more gracefully handle page refreshes #110

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

benmartin-coforma
Copy link
Contributor

Description

This PR should fix the autosave refresh bug without breaking anything else.

Related ticket(s)

N/A


How to test

To verify the bug is fixed:

  1. Create a new report
  2. Navigate to a page with more than one text input
  3. Enter a value in one of the text inputs
  4. Blur that field - which will trigger an autosave
  5. Refresh the browser window
  6. Enter a value in a different text input
  7. Blur that field - which will trigger another autosave
  8. Refresh the browser window
  9. Note that both inputs still contain your values

Also:

  1. idk, try a bunch of form... stuff. It should all work good.

Important updates

n/a


Author checklist

  • I have performed a self-review of my code
  • I have added thorough tests, if necessary
  • I have updated relevant documentation, if necessary

Copy link

codeclimate bot commented Feb 6, 2025

Code Climate has analyzed commit 7d38a33 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (90% is the threshold).

This pull request will bring the total coverage in the repository to 93.8% (0.0% change).

View more on Code Climate.

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