Describe the bug
Submit button does not work if a required field is hidden.
To Reproduce
Steps to reproduce the behavior:
- Create a form like this:
const contactSchema = defineSchema({
fields: [
{
type: "text",
name: "name",
required: true,
hidden: { $data: '/sendAsOrganization', eq: true },
},
{
type: "text",
name: "organization",
required: true,
hidden: { $data: '/sendAsOrganization', eq: false },
},
{
type: "checkbox",
name: "sendAsOrganization",
},
],
});
- Click on 'Submit'
- See that the submit button become disabled forever, and no submit handler is called, no errors in console.
Expected behavior
We should somehow handle this case properly, or show an error, instead of silently hanging.
Screenshots

Environment (please complete the following information):
- OS: Linux
- Browser: Firefox
- `form-core` / `form-react` Version: 0.1.13
Describe the bug
Submit button does not work if a required field is hidden.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We should somehow handle this case properly, or show an error, instead of silently hanging.
Screenshots

Environment (please complete the following information):