rkit / react-select2-wrapper

Wrapper for Select2
MIT License
163 stars 97 forks source link

How to set value of Select2? #41

Closed joetidee closed 8 years ago

joetidee commented 8 years ago

I would like to set the value of the Select2 element after it has been rendered, i.e. when a user clicks a button it changes tha value of the Select2 component. How can I do this?

rkit commented 8 years ago

You need re-render with new value examples/src/components/Tags.js#L43-L68

Boorj commented 8 years ago

I think, this one could be closed, since it's not an actual issue. Or please describe your problem more precisely.