Skip to content

Commit

Permalink
fix(module:switch): fix switch ViewChild static
Browse files Browse the repository at this point in the history
close #3760
  • Loading branch information
vthinkxie committed Jul 13, 2019
1 parent 4926b32 commit 07316ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/switch/nz-switch.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class NzSwitchComponent implements ControlValueAccessor, AfterViewInit, O
checked = false;
onChange: (value: boolean) => void = () => null;
onTouched: () => void = () => null;
@ViewChild('switchElement', { static: false }) private switchElement: ElementRef;
@ViewChild('switchElement', { static: true }) private switchElement: ElementRef;
@Input() @InputBoolean() nzLoading = false;
@Input() @InputBoolean() nzDisabled = false;
@Input() @InputBoolean() nzControl = false;
Expand Down

0 comments on commit 07316ff

Please sign in to comment.