Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48986

Click event in ion-checkbox inside ion-item trigger even outside checkbox

$
0
0

on clicking anywhere in the ion-item the click event defined in ion-checkbox is getting triggered. can anyone help

 <ion-item
    [class.animation-swipe-right] ="item.id === selectedid && segment =='Pending'"
    [class.animation-swipe-left] ="item.id === selectedid && segment =='Done'"
  
    >
      <ion-label>

        {{item | json}}
        <h3>{{item.itemname}}</h3>
        <p>
          {{item.itemqty}} &mdash; {{item.itemunit}}
        </p>
      </ion-label>
      <div>
        <ion-checkbox [attr.checked]="item.isCompleted" (click)="makeItemChecked($event,item); 
        $event.stopPropagation();"></ion-checkbox>
      </div>
      
    </ion-item>

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48986

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>