Skip to content

Commit eecf571

Browse files
committed
Fixed #86 - lost pipsValues under certain circumstances
1 parent 74f8122 commit eecf571

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/nouislider.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ function init(Survey) {
5454
tooltips: true,
5555
pips: {
5656
mode: question.pipsMode || "positions",
57-
values: question.pipsValues || [0, 25, 50, 75, 100],
57+
values: question.pipsValues.map(function(pVal) {
58+
return parseInt((pVal.value !== undefined && pVal.value) || pVal);
59+
}),
5860
density: question.pipsDensity || 5
5961
},
6062
range: {

0 commit comments

Comments
 (0)