diff --git a/src/components/slider/nz-slider.component.ts b/src/components/slider/nz-slider.component.ts index da8fe092b1c..39bacbf4ed9 100644 --- a/src/components/slider/nz-slider.component.ts +++ b/src/components/slider/nz-slider.component.ts @@ -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