Skip to content

Commit

Permalink
Fixed issue #16206: Slider tip indicates false error (#1508)
Browse files Browse the repository at this point in the history
Dev: Added extra validation for situations where value got NaN
  • Loading branch information
gabrieljenik committed Aug 12, 2020
1 parent 16425ff commit e6a4bb4
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -98,6 +98,10 @@ var LSSlider = function (options) {
},
setValue = function (value) {
value = value || parseFloat(position);
// If value is NaN, validation fails while first moving the slider
if (isNaN(value)) {
value = "";
}
sliderObject.setValue(value, true, true);
elementObject.val(value.toString().replace('.', separator)).trigger('keyup');
writeToRootElement(value);
Expand Down

0 comments on commit e6a4bb4

Please sign in to comment.