-
Notifications
You must be signed in to change notification settings - Fork 38
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
Incomplete text after selecting same item from list. #358
Comments
I have been able to reproduce. The pattern is always the same :
|
Query text must be emptied for the change to be registered by useEffect().
Is that correct ? I'm still learning Typescript and web development. |
Oh, nice. Indeed the first code you mentioned already fixes the problem and is what we need here, I guess! Feel free to create a pull request or I can mention you in the commit to credit you properly :) |
Unfortunately I had to revert it as it breaks editing the input text: 1. search for something and click the suggestion. 2. click again on the input element and whatever you type the input will be (incorrectly) cleared before it. |
Understood. Makes total sense. Next time, I'll mark it as untested explicitely (more like an hint to follow). |
…complete text after selecting same item from list, fixes graphhopper#358" This reverts commit ec38d6d.
When I initially have this URL and type 'hoyersw' in the first input field and click on the first result of the autocomplete, which would be the same text as in the URL (Hoyerswerda - Wojerecy), then the input stays at 'hoyers' instead of 'Hoyerswerda - Wojerecy'
The text was updated successfully, but these errors were encountered: