Nishanth
Nishanth

Reputation: 381

Checkbox returns true in edge browser where as chrome works as expected

Check box issue in Edge browser. When I console.log(), get True in edge where as false in chrome

<input type="checkbox" [ngModelOptions]="{standalone: true}" 
class="setup- checkbox"id="addRoleDeleteChkBox" 
[(ngModel)]="userRoleAll.isDeleteChecked"
(click)="selectAllRoles('delete')">

It works well in chrome as expected but not in edge

Upvotes: 1

Views: 38

Answers (1)

Seba Cherian
Seba Cherian

Reputation: 1793

Use change instead of click

<input type="checkbox" [ngModelOptions]="{standalone: true}" 
class="setup- checkbox"id="addRoleDeleteChkBox" 
[(ngModel)]="userRoleAll.isDeleteChecked"
(change)="selectAllRoles('delete')">

Upvotes: 1

Related Questions