Open ali-ebner opened 2 years ago
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 2.13.0
version. Please try it out and let us know if the issue with the focused state still appears. Thanks!
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