lob / react-address-autocomplete Goto Github PK
View Code? Open in Web Editor NEWReact Autocomplete component for Lob Address Autocomplete
License: MIT License
React Autocomplete component for Lob Address Autocomplete
License: MIT License
We recently conducted user testing on one of our websites and encountered an issue that appears to affect the accessibility of the select component. During form navigation, some test users utilized the 'tab' key to move from one element to another. However, when they attempted to select their address from the Lob autocomplete, they were unable to tab to the address option they wanted to use. Instead, they were redirected from our site to the Lob website. (See gif below)
After researching the code-base, I found intentional window location changes. Is there any way to prevent redirection? The redirect happens within the handleChange
function which is used in the onChange
event.
Based on the comments, it seems that the onChange event is intentionally defined after the user has supplied properties to avoid any unintended damage to the functionality. Is there a way to configure the component so that users can select their address using their keyboard?
Steps to reproduce:
Uncaught (in promise) Error: Expected countryCode to be of type string
at validateArguments (verify.js:36:1)
at verifyInternational (verify.js:89:1)
at handleSubmit (AddressFormInternational.js:78:1)
Any thoughts on a fix or workaround? Thanks
Seems like linking to images in the public folder requires more than just calling it :(
https://www.geeksforgeeks.org/how-to-use-files-in-public-folder-in-reactjs/
When selecting an address in mobile browsers (and even in the mobile emulation on desktop browsers) the value is not updated with the selected one. Everything else seems to be working correctly. Adding blurInputOnSelect={false}
to the Autocomplete
component fixed the issue, but I'm not entirely sure why.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.