the prop "openOnFocus" from the AutoComplete Component doesn't function as desired because the filter function doesn't take in consideration the prop.
filter: (searchText, key) => searchText !== '' && key.indexOf(searchText) !== -1,
so when the prop is true nothing really happens because the searchText == ""
<AutoComplete
openOnFocus
hintText="Type anything"
dataSource={ [ "exeption1","other Type", "another Type" ]}
onUpdateInput={this.handleUpdateInput}
/>
+1
Can't you just set filter={(searchText, key) => (key.indexOf(searchText) !== -1)} to get the functionality you're looking for?
Yea that is what I did on my end. However, if someone downloads the library and tries the prop "openOnFocus" it will not work.
So perhaps the solution would be to override the default filter with (searchText, key) => (key.indexOf(searchText) !== -1) if openOnFocus is true and no filter is provided.
Closed by #4783
Most helpful comment
So perhaps the solution would be to override the default filter with
(searchText, key) => (key.indexOf(searchText) !== -1)if openOnFocus is true and no filter is provided.