Angular 复选框在边缘浏览器中返回true,其中as-chrome按预期工作
边缘浏览器中的复选框问题。 当我console.log()时,在edge中为True,在chrome中为falseAngular 复选框在边缘浏览器中返回true,其中as-chrome按预期工作,angular,checkbox,Angular,Checkbox,边缘浏览器中的复选框问题。 当我console.log()时,在edge中为True,在chrome中为false <input type="checkbox" [ngModelOptions]="{standalone: true}" class="setup- checkbox"id="addRoleDeleteChkBox" [(ngModel)]="userRoleAll.isDeleteChecked" (click)="selectAllRoles('delete')"&g
<input type="checkbox" [ngModelOptions]="{standalone: true}"
class="setup- checkbox"id="addRoleDeleteChkBox"
[(ngModel)]="userRoleAll.isDeleteChecked"
(click)="selectAllRoles('delete')">
正如预期的那样,它在chrome中运行良好,但在edge中不起作用使用更改而不是单击
<input type="checkbox" [ngModelOptions]="{standalone: true}"
class="setup- checkbox"id="addRoleDeleteChkBox"
[(ngModel)]="userRoleAll.isDeleteChecked"
(change)="selectAllRoles('delete')">
@nishanth如果答案适用于您的情况,请支持该答案