Skip to content

Commit

Permalink
fix(nouislider): explicit cast to number (#195)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Kurmanov <[email protected]>
  • Loading branch information
johannesschobel and dmitry-kurmanov authored Jun 10, 2020
1 parent 1a50c80 commit 51e9209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nouislider.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ function init(Survey) {
orientation: question.orientation,
direction: question.direction,
});
slider.on("change", function () {
question.value = slider.get();
slider.on("change", function() {
question.value = Number(slider.get());
});
var updateValueHandler = function () {
slider.set(question.value);
Expand Down

0 comments on commit 51e9209

Please sign in to comment.