Skip to content

Commit

Permalink
fix(module:switch): fix switch ViewChild static (#3784)
Browse files Browse the repository at this point in the history
close #3760
  • Loading branch information
vthinkxie authored Jul 13, 2019
1 parent cce920d commit f59d79f
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 f59d79f

Please sign in to comment.