auto-complete icon indicating copy to clipboard operation
auto-complete copied to clipboard

click on items getting input blank

Open chaouiy opened this issue 7 years ago • 3 comments

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);
  }

chaouiy avatar Feb 09 '18 09:02 chaouiy

after tests the problem occurs when clicking on images, Any suggestions to handle this ?

chaouiy avatar Feb 09 '18 12:02 chaouiy

May you please provide a working plunker example?

almothafar avatar Mar 14 '18 10:03 almothafar

Hi @amineparis , this happens with element HTML content also.

knvpk avatar Jul 31 '18 13:07 knvpk