airjp73 / rvf

Easy form validation and state management for React and Remix
https://rvf-js.io
MIT License
827 stars 66 forks source link

[Bug]: When a fetcher is supplied via the ValidatedForm, the non-js path stops working #273

Closed meza closed 1 month ago

meza commented 1 year ago

Which packages are impacted?

What version of these packages are you using?

Please provide a link to a minimal reproduction of the issue.

https://codesandbox.io/s/epic-saha-u99g03?file=/app/routes/index.tsx

Steps to Reproduce the Bug or Issue

  1. Keep Javascript on
  2. leave the input field empty
  3. submit the form
  4. see the validation work
  5. Turn JS off
  6. leave the input field empty
  7. see the validation NOT work
  8. remove the fetcher from the ValidatedForm props
  9. submit an empty field
  10. the validation works

Expected behavior

I'd expect the validation to work with a custom fetcher

Screenshots or Videos

No response

Platform

Tried on win 11, latest firefox and chrome

Additional context

No response

airjp73 commented 1 month ago

RVF v6 has been released 🎉

Due to the extent of the rework in v6, I'm going to close this issue for now. If it's still a problem in that version, please feel free to open a new issue.

You can find the documentation here and the migration guide here.