Skip to content

Slider value does not match custom values specified #328

Closed
@HemanthD

Description

@HemanthD

Steps to reproduce

  1. Include a slider with customized stepsArray with values and legends
  2. Have the values different from the 'index' value (for e.g., in the demo, the last value (index: 4) is set to 5
  3. Check the slider value - the value matches the 'index' and not the 'customized value'
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions