Skip to content

Commit

Permalink
fix(module:slider): rectify return value (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
trotyl authored and vthinkxie committed Dec 11, 2017
1 parent 35687c3 commit 6b095a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/slider/nz-slider.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ export class NzSliderComponent implements ControlValueAccessor, OnInit, OnChange
(value as number[]).map(val => this.utils.correctNumLimit(val, this.nzMin, this.nzMax)) :
this.utils.correctNumLimit(value as number, this.nzMin, this.nzMax);
}
return value;
return res;
}

// check if value is valid and throw error if value-type/range not match
Expand Down

0 comments on commit 6b095a8

Please sign in to comment.