Hi Team,
I need the keydown event for AutoCompleteComponent, for auto populating the items which are to be fetched from the databass based on user enter.
And fetched data is stoted in state variable clients.
Below is the code snippet.
The OnKeyDown is written in below code. However, it is not triggered.
<AutoCompleteComponent id="search-client"
dataSource={this.state.clients} ref={(autocomplete) => { this.searchClient = autocomplete; }}
cssClass="e-outline"
floatLabelType="Auto"
onKeyDown={this.handleKeyDown}
onChange={this.getSelectedClient}
fields={{ value: 'Name' }} popupHeight="250px" placeholder="Search Group/Company" autofill={true} filterType='StartsWith' />
Please kindly suggest me solution.
Many Thanks,
Sinchan