Encountering an issue, the (change)
function is not triggering in a specific checkbox.
<input [(ngModel)]="driver.glasses" name="glasses" type="checkbox" class="make-switch"
(change)="changeFunction()" data-on-color="primary" data-off-color="info">
Interestingly, it works perfectly fine with this one:
<input [(ngModel)]="driver.glasses" name="glasses" type="checkbox"
(change)="changeFunction()" data-on-color="primary" data-off-color="info">
The culprit seems to be the class="make-switch"
attribute, as the first checkbox with this class fails to trigger the (change)
event. Is there a way to resolve this while still utilizing the class="make-switch"
for the switch functionality?