Skip to content

Commit

Permalink
fix(module:checkbox): fix trigger twitce in safari (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
SangKa authored and vthinkxie committed Sep 9, 2017
1 parent 23b73bb commit cd5b511
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/checkbox/nz-checkbox.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
<span [ngClass]="_innerPrefixCls"></span>
<input type="checkbox"
[ngClass]="_inputPrefixCls"
[(ngModel)]="nzChecked"
[ngModel]="nzChecked"
(focus)="nzFocus()"
(blur)="nzBlur()">
</span>
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit cd5b511

Please sign in to comment.