Clear input value on receiving props with another value.#2183
Clear input value on receiving props with another value.#2183JedWatson merged 2 commits intoJedWatson:masterfrom yuri-sakharov:bug/clear-input-value
Conversation
|
Solid fix @yuri-sakharov, thanks! |
|
@JedWatson thank you too. |
|
FYI this was a breaking change for me (and took me a little while to track down after upgrading!) My value prop (actually a list of values since I'm in multi mode) are coming from an immutable collection which I was converting to an array of values in a render function. I had to refactor things to instead do the conversion in componentWillReceiveProps (only if the immutable collection changed) and assign to state for use in the render function. I can see the value of this PR, but it might be helpful to draw attention to it in the docs or something in case other people get tripped up by this as well. |
|
@yuri-sakharov why wasn't this fix merged? |
|
@hiredgun I don't know and don't have rights for merge. The question should be addressed to collaborators. |
Hi,
Should be fixed this bug #2155.
Thanks.