Describe the bug
When the only invalid FormField component is one that renders a FormCheckbox, submitting the form does not handle the validation error, and an error is observable in the browser console: TypeError: elm.focus is not a function
Observe no validation on screen & error in the console
Expected behavior
The validation behaviour should work correctly.
Platform (please complete the following information):
Type: Browser
OS: MacOS 15.0
Browser Chrome
Additional context
Assume the issue is with ref forwarding. I have attempted to fix it, but can't seem to get there. Some help would be very much appreciated.
Describe the bug When the only invalid FormField component is one that renders a FormCheckbox, submitting the form does not handle the validation error, and an error is observable in the browser console: TypeError: elm.focus is not a function
To Reproduce Steps to reproduce the behavior:
<FormCheckbox label="Accept terms & conditions" {...field} />
pnpm dev:showcase:web
Expected behavior The validation behaviour should work correctly.
Platform (please complete the following information):
Additional context Assume the issue is with ref forwarding. I have attempted to fix it, but can't seem to get there. Some help would be very much appreciated.