Open charliedotau opened 6 years ago
Hey @charliedotau
Today there isn't currently a way to control what is rendered for the text of any suggestions that were returned from Google. But that doesn't mean we can't look into adding that functionality. :smile:
hi there @Giners
Is there a way to manipulate the suggestion text? For example as is, the component might return a list of suggestions like so
town name A, Victoria, Australia
town name B, Victoria, Australia
town name C, Victoria, Australia
Whereas for brevity I'd prefer
town name A, VIC
town name B, VIC
I'm thinking of a callback where, I could manipulate how the result returned from the Google API, is represented as a string.
I don't see a way to do that? As I understand
createAutocompleteRequest
is about controlling what Google returns, rather than how the component displays it.Not showstopper but a nice to have. Thank you