rkit / react-select2-wrapper

Wrapper for Select2
MIT License
163 stars 97 forks source link

required propTypes #12

Closed flynfish closed 8 years ago

flynfish commented 8 years ago

Right now the defaultValue is required to be number or array. A string is perfectly valid when the id is not a number. Can you add the string as a valid value?

defaultValue: PropTypes.oneOfType([
      PropTypes.number,
      PropTypes.array,
      PropTypes.string,
    ])
rkit commented 8 years ago

Ok, Today will be release.

rkit commented 8 years ago

I released a new version (0.3.0)

flynfish commented 8 years ago

thanks!