sickdyd / react-search-autocomplete

A search box that filters the provided array of objects
https://sickdyd.github.io/react-search-autocomplete
MIT License
222 stars 85 forks source link

Unable to show current value on edit mode #112

Open sivaram-blr opened 1 year ago

sivaram-blr commented 1 year ago

Team,

We are using autocomplete component to search user by email address. It is working fine on creation of the content.

When we are editing the content, We should be able to display the current user(email address) in the autocomplete field when page loads. But we are unable to do it.

Could you please help us to do this.

Thanks

Jitendra-PG commented 3 months ago

Did you ever find a solution to this? Facing a similar issue. We are able to use inputSearchString to show the value, but it also opens the autocomplete dropdown

passatgt commented 2 months ago

Did you ever find a solution to this? Facing a similar issue. We are able to use inputSearchString to show the value, but it also opens the autocomplete dropdown

Not perfect, but i used the placeholder property instead and if theres no value, fallback to the real placeholder text(in my case Search...)