Closed alamtopan closed 2 years ago
@alamtopan Hello!
You might want to take a look at this issue: https://github.com/sickdyd/react-search-autocomplete/issues/17
Codesandbox: https://codesandbox.io/s/distracted-fermat-zo6r8?file=/src/App.js
Let me know if it fixes your problem.
Hey @alamtopan,
Unable to set default value on load, can you please help me for this issue?
yes, how to set default value of input on load, please help :)
@rughaanimskhan @bharath2612 You can use the inputSearchString
to set a default value:
<ReactSearchAutocomplete
items={items}
onSearch={handleOnSearch}
inputSearchString="hello"
/>
How can set default value in autocomplete ?
on collection data data = [ {id: 0, name: 'alam'}, {id: 1, name: 'edit'}, {id: 3 name: 'asa'} ]
i want set default, with id = 0 or name alam ? its posible or not without selected first.