-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isFocused property not getting updated on inputs of type "zip-code" #37
Comments
Thank you @ali-ebner for pointing this out! We're working on the fix. |
@ali-ebner we've fixed it in the scope of the VGS Collect.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
The
isFocused
property in the form state should get updated on focus and blur for vgs form fields of typezip-code
Current Behavior
isFocused
does not get updated for zip-code inputsSteps to Reproduce (for bugs)
Code pen example:
https://codepen.io/ali_ebner/pen/NWXBvjM?editors=1111
isFocused
remains false even though other fields updateisFocused
remains false/unchangedContext
Styles and other behaviors that are dependent on the isFocused state for this field are not applying.
Current workaround is to use field.on('focus') and field.on('blur') and then update React state to keep track of focus for this field.
Your Environment
The text was updated successfully, but these errors were encountered: