Open chaouiy opened 6 years ago
When user clicks inside the list formatted elements nothing happened (input gets blank). Clicks work only outside html element declared in autocompleteListFormatter
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.
When user clicks inside the list formatted elements nothing happened (input gets blank). Clicks work only outside html element declared in
autocompleteListFormatter