Skip to content

Slider value is crossing the ceil #417

Closed
@sushantt2099

Description

@sushantt2099

Steps to reproduce

  1. Use the following option to initialise the slider
vm.priceSlider = {
        value: 200,
        options: {
            floor: 1,
            ceil: 700,
            showTicksValues: 70,
            // translate: (value) => {
            //     if(value > 1) return value - 1;
            //
            //     return value;
            // },
            showSelectionBar: true
        }
    }

Demo: http://jsfiddle.net/gfk1hzLp/ (fork this example and update the link)

Expected behaviour

The upper limit should not cross the ceil. The tick value label should also not cross the ceil

Actual behaviour

The upper limit is crossing the ceil, the tick value label is also crossing the ceil

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions