mercredi 12 août 2020

materialize css checkbox not working with model variable

this is html

<div class="checkbox checkbox-circle">
       <label>
        <input type="checkbox" [attr.checked]="isSelected ? true : null" class="filled-in"
          (change)="rowToggleSelection(row,$event,i)" />
        <span></span>
      </label>
</div>

there is a button that set true/false to isSelected and it works fine till i change the value of checkbox by clicking on checkbox itself. After click on checkbox it stops working from the buton.




Aucun commentaire:

Enregistrer un commentaire