Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51cd1bf

Browse files
author
Valentin Hervieu
committed
Fix when floor is negative and ceil is 0
As reported in angular-slider#174
1 parent d03ac54 commit 51cd1bf

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dist/rzslider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@
585585

586586
this.minValue = this.roundStep(+this.options.floor);
587587

588-
if (this.options.ceil)
588+
if (this.options.ceil != null)
589589
this.maxValue = this.roundStep(+this.options.ceil);
590590
else
591591
this.maxValue = this.options.ceil = this.range ? this.scope.rzSliderHigh : this.scope.rzSliderModel;

dist/rzslider.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rzslider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@
585585

586586
this.minValue = this.roundStep(+this.options.floor);
587587

588-
if (this.options.ceil)
588+
if (this.options.ceil != null)
589589
this.maxValue = this.roundStep(+this.options.ceil);
590590
else
591591
this.maxValue = this.options.ceil = this.range ? this.scope.rzSliderHigh : this.scope.rzSliderModel;

0 commit comments

Comments
 (0)