I am creating a page with ionic 5.
I am making a 'remember me' button with use of <ion-toggle>
.
<ion-item>
<ion-label>remember me</ion-label>
<ion-toggle class="button"></ion-toggle>
</ion-item>
The Ion-toggle
is working fine, but I can't toggle it by clicking on the label next to it.
I have tried many solutions.
The link for the API documentation is: https://ionicframework.com/docs/api/toggle
Is there any way to make both the ion toggle and the text clickable?
I'm using ionic angular
Thanks in advance