Bug: Passing onChange to Custom Dropdown component
nickcanarelli opened this issue · comments
Nick Canarelli commented
Bug description
I am trying to create a custom Dropdown component and continue to receive when passing the value into the props.onChange:
Uncaught TypeError: Cannot read properties of undefined (reading 'value')
To reproduce
https://codesandbox.io/s/react-daypicker-forked-7v4skw
Steps
- In the codesandbox
Expected behavior
What needs to be passed into the onChange?