Describe the bug
The SSR version of the app fires PUT requests, even when there are JS validation errors in the form editor
To Reproduce
Steps to reproduce the behavior:
- Create a new form on the SSR version of the app.
- Add a new short answer component
- Click save and close
- See error reflected in the UI state and a PUT request error in the browser console.
Expected behavior
JS validation errors should prevent the API from being called if possible
Server log from above
@gsa-tts/forms-server:dev: input { label: { type: 'required', message: 'A field label is required' } }
@gsa-tts/forms-server:dev: Pattern config error: A field label is required