gpbl / react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.

Home Page:https://daypicker.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: Passing onChange to Custom Dropdown component

nickcanarelli opened this issue · comments

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

  1. In the codesandbox

Expected behavior

What needs to be passed into the onChange?