-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add event onFocusOut for input #2
Comments
Do you mean, that when we clear input value we should fire |
I think when the input is cleared, the value should also be cleared. Now it stays (as you can see here). |
Hello, sorry for the late answer. It allows you to pass your own import { AddressSuggestions } from 'react-dadata';
import 'react-dadata/dist/react-dadata.css';
const [value, setValue] = useState();
const handleInputChange = (event) => {
// Paste your logic here
}
<AddressSuggestions
token="API_KEY"
value={value}
onChange={setValue}
inputProps={{
onChange: handleInputChange,
}}
/> Feel free to ask questions you have! Thanks |
If an address is selected and we clear the field, then no event occurs. Please correct
The text was updated successfully, but these errors were encountered: