From cd5b511828d4391d21953bee05e2297ae016a5e8 Mon Sep 17 00:00:00 2001 From: "SangKa.Z" Date: Sat, 9 Sep 2017 15:14:45 +0800 Subject: [PATCH] fix(module:checkbox): fix trigger twitce in safari (#256) --- src/components/checkbox/nz-checkbox.component.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/checkbox/nz-checkbox.component.ts b/src/components/checkbox/nz-checkbox.component.ts index 18dabdfcb5..0d280985db 100644 --- a/src/components/checkbox/nz-checkbox.component.ts +++ b/src/components/checkbox/nz-checkbox.component.ts @@ -18,7 +18,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; @@ -53,11 +53,6 @@ export class NzCheckboxComponent implements OnInit, ControlValueAccessor { return this._checked; }; - set nzChecked(value: boolean) { - this.updateValue(value); - } - - @HostListener('click', [ '$event' ]) onClick(e) { e.preventDefault();