Closed flynfish closed 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
defaultValue: PropTypes.oneOfType([ PropTypes.number, PropTypes.array, PropTypes.string, ])
Ok, Today will be release.
I released a new version (0.3.0)
thanks!
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?