Skip to content

Commit e220d12

Browse files
committed
noUiSlider 14.6.1 Fix #1088
1 parent b7e4cf2 commit e220d12

File tree

7 files changed

+26
-15
lines changed

7 files changed

+26
-15
lines changed

CHANGELOG.MD

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
### 14.6.1 (*2020-08-17*)
4+
- Fixed: Pips in count mode ignores pip at end of range (#1088);
5+
36
### 14.6.0 (*2020-06-27*)
47
- Added: `keyboardPageMultiplier` and `keyboardDefaultStep` options (#1083);
58
- Fixed: Ignore erroneous tap events for iOS (#1057, #1079);
@@ -20,7 +23,7 @@
2023
- Added: Allow multiple classes in `cssClasses` option (#1054);
2124
- Fixed: Slider not working within shadow DOM (#1060);
2225
- Fixed: Last pip not rendered if it is also the first and at the slider edge (#1063);
23-
26+
2427
### 14.1.1 (*2019-12-15*)
2528
- Fixed: Text direction is not correctly determined when the slider is not in the DOM (#1038);
2629

@@ -78,7 +81,7 @@ Alternatively, built-in keyboard support can be disabled using `keyboardSupport:
7881
- Added: `setHandle` API (#917);
7982
- Changed: point to `nouislider.js` in `package.json`.`main` (#921);
8083

81-
### 12.0.0 (*2018-09-14*)
84+
### 12.0.0 (*2018-09-14*)
8285
- Change: License changed to MIT;
8386
- Change: Build process is now based on NPM scripts, phasing out the Grunt task runner.
8487
- Fixed: Aria values are now as per spec (#889);

distribute/nouislider.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! nouislider - 14.6.0 - 6/27/2020 */
1+
/*! nouislider - 14.6.1 - 8/17/2020 */
22
/* Functional styling;
33
* These styles are required for noUiSlider to function.
44
* You don't need to change these rules to apply your design.

distribute/nouislider.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! nouislider - 14.6.0 - 6/27/2020 */
1+
/*! nouislider - 14.6.1 - 8/17/2020 */
22
(function(factory) {
33
if (typeof define === "function" && define.amd) {
44
// AMD. Register as an anonymous module.
@@ -13,7 +13,7 @@
1313
})(function() {
1414
"use strict";
1515

16-
var VERSION = "14.6.0";
16+
var VERSION = "14.6.1";
1717

1818
//region Helper Methods
1919

@@ -1409,12 +1409,16 @@
14091409
step = high - low;
14101410
}
14111411

1412-
// Low can be 0, so test for false. If high is undefined,
1413-
// we are at the last subrange. Index 0 is already handled.
1414-
if (low === false || high === undefined) {
1412+
// Low can be 0, so test for false. Index 0 is already handled.
1413+
if (low === false) {
14151414
return;
14161415
}
14171416

1417+
// If high is undefined we are at the last subrange. Make sure it iterates once (#1088)
1418+
if (high === undefined) {
1419+
high = low;
1420+
}
1421+
14181422
// Make sure step isn't 0, which would cause an infinite loop (#654)
14191423
step = Math.max(step, 0.0000001);
14201424

distribute/nouislider.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.

distribute/nouislider.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.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nouislider",
3-
"version": "14.6.0",
3+
"version": "14.6.1",
44
"main": "distribute/nouislider.js",
55
"style": "distribute/nouislider.min.css",
66
"license": "MIT",

src/nouislider.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,12 +1408,16 @@
14081408
step = high - low;
14091409
}
14101410

1411-
// Low can be 0, so test for false. If high is undefined,
1412-
// we are at the last subrange. Index 0 is already handled.
1413-
if (low === false || high === undefined) {
1411+
// Low can be 0, so test for false. Index 0 is already handled.
1412+
if (low === false) {
14141413
return;
14151414
}
14161415

1416+
// If high is undefined we are at the last subrange. Make sure it iterates once (#1088)
1417+
if (high === undefined) {
1418+
high = low;
1419+
}
1420+
14171421
// Make sure step isn't 0, which would cause an infinite loop (#654)
14181422
step = Math.max(step, 0.0000001);
14191423

0 commit comments

Comments
 (0)