Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Slider] Pass this.state.value into onDragStop & onDragStart #4712

Closed
wants to merge 1 commit into from

Commits on Jul 14, 2016

  1. Pass this.state.value into onDragStop & onDragStart

    Someone I know was having issues getting the slider value back when the user stops sliding. It was being passed back whilst sliding (`onChange`) but that's now what they were after.
    
    From what I can see, the only way of getting that value is creating a ref on the Slider component and accessing `this.refs.slider.getValue()` within the `onDragStop` method. Like the `onChange` method, the second param is now the slider value. I also added the same to `onDragStart` for consistency.
    Ehesp committed Jul 14, 2016
    Configuration menu
    Copy the full SHA
    a6f94fa View commit details
    Browse the repository at this point in the history