Replies: 1 comment 4 replies
-
I believe the focus is actually there you can try with press the "space" key or tab around. I had similar issue before, because focus ring didn't appear. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When form fields have an error, on
handleSubmit
the first error field should get focused and scrolled into view. On iOS devices, neither the scrolling nor the focusing seems to work for fields that are checkboxes, radios, or selects.We are currently using v6 (considering migrating but it will take a while), and we depend on scrolling to the field with error on submit. But, we noticed that on iOS certain types of fields (checkboxes, radios, selects) are not focused or scrolled to.
Is this something that has been noticed before? Is there a plan to address it? If it'll be implemented in v7, that's one more reason to migrate.
From my research, it seems on iOS the scroll needs to be triggered separately. My only option, if the library doesn't, is to
useImperativeHandle
on all refs, and combine scrolling with focus.Beta Was this translation helpful? Give feedback.
All reactions