Skip to content

Tag: onchange

Uncaught TypeError: event.target is undefined

Using React and React-Dropdown package, I keep getting this Uncaught TypeError: event.target is undefined error whenever I select a year. Answer Looks like this package doesn’t pass in the event but only the changed value of the new selected option: https://github.com/fraserxu/react-dropdown/blob/master…