Closed
Description
Steps to reproduce
- Include a slider with customized stepsArray with values and legends
- Have the values different from the 'index' value (for e.g., in the demo, the last value (index: 4) is set to 5
- Check the slider value - the value matches the 'index' and not the 'customized value'
- The pointer label shows the correct custom value
Demo: https://jsfiddle.net/HemanthD/vqwa3m0x/2/
vm.customSlider = {
value: 0,
options: {
ceil: 5,
hideLimitLabels: true,
hidePointerLabels: false,
showTicks: true,
showTicksValues: false,
stepsArray: [{value: 0, legend:'Not Applicable'}, {value: 1, legend:'>= 35%'}, {value: 2, legend:'25% to 35%'}, {value: 3, legend:'15% to 25%'}, {value: 5, legend:'< 15%'}],
}
};
Expected behaviour
Slider value should track the customized value specified in the stepsArray. The value associated with the last tick should be 5.
Actual behaviour
Slider value should tracks the array index and ignores the customized value specified in the stepsArray. The value associated with the last tick is shown as 4.