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

Remove componentWillReceiveProps so that not controlled #24

Merged
merged 1 commit into from
Apr 5, 2016
Merged

Remove componentWillReceiveProps so that not controlled #24

merged 1 commit into from
Apr 5, 2016

Conversation

rreusser
Copy link
Contributor

See: #23

SliderIOS interprets value as an initial value only. I'm not 100% sure it's the right move, but I've removed componentWillReceiveProps so that it may match SliderIOS behavior more closely.

@rreusser rreusser changed the title Remove componentWillReceiveProps update since not controlled Remove componentWillReceiveProps update so that not controlled Mar 31, 2016
@rreusser rreusser changed the title Remove componentWillReceiveProps update so that not controlled Remove componentWillReceiveProps so that not controlled Mar 31, 2016
@jeanregisser
Copy link
Owner

Nice! Yes let's follow the behavior from SliderIOS.

@jeanregisser jeanregisser merged commit c72490c into jeanregisser:master Apr 5, 2016
@jeanregisser
Copy link
Owner

Having second thoughts on that. Without it, it's impossible to programmatically set the value after the initial value has been set.
I've just tested this and the code with componentWillReceiveProps matched what SliderIOS is doing.
So I'm reverting this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants