Closed BookSock closed 7 years ago
Good catch! I think a better fix is to add a noop function to defaultProps
Select.defaultProps = {
onValueChange: () => {},
placeholder: '',
labelKey: 'label',
valueKey: 'value',
value: ''
}
Oh true. Yeah I agree.
Are you going to update the PR or should I?
Sorry, just updated it
Thanks 👍 deployed in 0.1.1
throws error that function props.onValueChange does not exist. I changed to make it ignore the function call if it doesn't exists.