alsoscotland / react-super-select

MIT License
95 stars 33 forks source link

Problem with setting initialValues through componentWillReceiveProps #29

Closed joewood closed 9 years ago

joewood commented 9 years ago

When the component is rendered multiple times and React invokes componentWillReceiveProps the changing value of initialValue is ignored. It looks like the initialization code around setting the values isn't called when the component is remounted.

alsoscotland commented 9 years ago

@joewood Thanks for filing the issue. I will get this taken care of shortly

alsoscotland commented 9 years ago

@joewood I think that pull https://github.com/alsoscotland/react-super-select/pull/30 should cover it.

joewood commented 9 years ago

Thanks @alsoscotland. It's a great component!

alsoscotland commented 9 years ago

I appreciate it @joewood Glad you are finding it useful! I will merge this and tag a new branch soon. I am hoping to get a couple other minor modifications in alongside it.

alsoscotland commented 9 years ago

This should be fixed in version 0.1.16