We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de23c63 commit be1d468Copy full SHA for be1d468
src/nouislider.js
@@ -42,13 +42,9 @@ function init(Survey) {
42
]);
43
},
44
afterRender: function(question, el) {
45
- if (question.isEmpty()) {
46
- question.value = (question.rangeMin + question.rangeMax) / 2;
47
- }
48
-
49
el.style.marginBottom = "60px";
50
var slider = noUiSlider.create(el, {
51
- start: question.value,
+ start: question.value || (question.rangeMin + question.rangeMax) / 2,
52
connect: [true, false],
53
step: question.step,
54
tooltips: true,
@@ -64,7 +60,7 @@ function init(Survey) {
64
60
max: question.rangeMax
65
61
}
66
62
});
67
- slider.on("set", function() {
63
+ slider.on("change", function() {
68
question.value = slider.get();
69
70
var updateValueHandler = function() {
0 commit comments