We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In my autocomplete I have data from my API. It works fine, but when I select one it gives me only letters that I typed not whole selected item.
const autoComplete = document.querySelector('.autocomplete'); this.http.get('http://myapi.com/api/customers') .subscribe((result:any[]) => { let customers = {}; for(var i=0;i<result.length;i++) { customers[result[i].Kod] = null; } M.Autocomplete.init(autoComplete, { data : customers }); });
Is that a normal behavior?
The text was updated successfully, but these errors were encountered:
Fixed with adding a change event <input type="text" id="autocomplete_kontrahenci" class="autocomplete" (change)="selectItem($event)">
<input type="text" id="autocomplete_kontrahenci" class="autocomplete" (change)="selectItem($event)">
selectItem(event:any) { this.Variable = event.target.value; }
Sorry, something went wrong.
No branches or pull requests
In my autocomplete I have data from my API. It works fine, but when I select one it gives me only letters that I typed not whole selected item.
Is that a normal behavior?
The text was updated successfully, but these errors were encountered: