Skip to content

Range: Clicking on marks label will not update the slider #599

Open
@leventecsordas

Description

@leventecsordas

Clicking on the mark labels of a range slider will not update the slider.

Steps to reproduce:

  1. got to the http://react-component.github.io/slider/examples/marks.html
  2. find the Range with marks or Range with marks and steps sliders
  3. click on any label

Expected:

The slider should be updated, the nearest (or last changed) handler should jump on the above the label.

Result:

The slider is not updated, the handlers are not moved at all.

The problem as I can see is that the value passed from onClickMarkLabel is totally ignored and the bounds are not recalculated, so the onChange handler will be fired with previous bounds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions