formio
formio copied to clipboard
[BUG] Signature panel accepts empty input even though marked as Required
Environment
Please provide as many details as you can:
- Hosting type
- [x] Form.io
- [ ] Local deployment
- Version:
- Formio.js version: Current version on portal.form.io as of January 18th, 2022
- Browser: Chrome (97.0.4692.71), Edge (97.0.1072.62)
Steps to Reproduce
- Sign up for trial
- Create new API Web form
- Add signature panel to it
- On the Validation panel, check the "Required" property
- Test the form by clicking "Use"
- Note that the "Submit" button starts off disabled but becomes enabled as soon as you click into the signature panel, even though you have not entered anything.
Expected behavior
Need to enter something into the panel before I can submit.
Observed behavior
Able to submit with no data in the panel.
There is no focus behavior on the signature pad. Clicking the pad places a dot, but because you don't move the mouse, nothing gets drawn.
The submit button is triggered by the data present on the pad, so disabled when null, enabled when not null. an empty image is not the same as a null image.
Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!