-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Form): Disable autofocus on error for some fields on iOS (#1307)
Fields that are excluded from autofocus on error in iOS because the focus action opens the picker/selector * date * datetime-local * month * select Note: scroll to element not affected A simple unit test that covers these scenarios has been added but you can be manually test this using playroom with a snippet like: ```jsx <Form> <Stack space={16}> <Select name="field" label="field" options={[{ value: "x", text: "x" }]} /> <ButtonPrimary submit>Submit</ButtonPrimary> </Stack> </Form> ``` and opening the preview in an iphone --------- Co-authored-by: Pedro Ladaria <[email protected]>
- Loading branch information
Showing
3 changed files
with
102 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
316565d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for mistica-web ready!
✅ Preview
https://mistica-89g4ymmkd-flows-projects-65bb050e.vercel.app
Built with commit 316565d.
This pull request is being automatically deployed with vercel-action