Autocomplete: Search if the user retypes the same value

Fixes #7434
Closes gh-1238