auto-complete
auto-complete copied to clipboard
click on items getting input blank
When user clicks inside the list formatted elements nothing happened (input gets blank). Clicks work only outside html element declared in autocompleteListFormatter
autocompleListFormatter = (data: any) => {
let html = `<p class="d-inline-block" style="padding-top: 10px; cursor:default;"><img class='img-rounded' width='32px' src='${data.picture}'/> <strong class="m-l-xs">${data.first_name} ${data.last_name} </strong></p>`;
return this._sanitizer.bypassSecurityTrustHtml(html);
}
after tests the problem occurs when clicking on images, Any suggestions to handle this ?
May you please provide a working plunker example?
Hi @amineparis , this happens with element HTML content also.