I try to switch from ionic 3 to 4.
In a list, I have some text injected from my database. I want the user to be able to click on this text.
Here is my code, which was OK in ionic 3 :
<ion-item [ngClass]="item.nature" (click)="itemTextShow(item)">
<ion-icon slot="end" size="small" class="su" name='thumbs-up' *ngIf="item.su>0">
<span [innerHTML]="sanitizer.bypassSecurityTrustHtml(item.questionaff)"></span>
</ion-item>
With ionic 4, the text is injected, but the (click) doesn’t work on the text (it triggers on the icon, or everywhere in the <ion-item>
out of the textbox, and even in the background space between the lines or the bloc letters !
I believed that this happens because the text is injected in the shadow dom, but it’s not the case…
Has someone encountered this issue ?