alsoscotland / react-super-select

MIT License
95 stars 33 forks source link

Clear selected options on data source change #93

Closed VikLiegostaiev closed 7 years ago

VikLiegostaiev commented 7 years ago

Hi, have one more problem :-) if my dataSource is dynamically changed and i want to selected options become cleared with every changed what i should do? :) now, i just change state with the help of refs, but i recommend you to add some property as for example clearSelectedValuesOnDataSourceChange. Thanks :D

alsoscotland commented 7 years ago

@VikLiegostaiev That should be easy enough to add. I am planning to create a new version in the next couple of days

alsoscotland commented 7 years ago

@VikLiegostaiev Added the new prop in https://github.com/alsoscotland/react-super-select/tree/v0.5.13