You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
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.
Activity
kriegalex commentedon Oct 23, 2023
I have been able to reproduce.
The pattern is always the same :
kriegalex commentedon Oct 23, 2023
Query text must be emptied for the change to be registered by useEffect().
Is that correct ? I'm still learning Typescript and web development.
karussell commentedon Oct 30, 2023
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 :)
problem with editing existing input text, so we have to revert "no in…
karussell commentedon Dec 3, 2023
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.
kriegalex commentedon Dec 4, 2023
Understood. Makes total sense. Next time, I'll mark it as untested explicitely (more like an hint to follow).
no incomplete text after selecting same item from list, fixes graphho…
no incomplete text after selecting same item from list, fixes graphho…
problem with editing existing input text, so we have to revert "no in…