Its a custom workaround for handling autocomplete inputs