I'm trying to use RangeCalendar inside Picker but I keep getting this error:
Uncaught TypeError: Cannot read property '0' of undefined
at _class.getStartValue (RangeCalendar.js:671)
at _class.render (RangeCalendar.js:169)
at finishClassComponent (react-dom.development.js:13727)
at updateClassComponent (react-dom.development.js:13690)
at beginWork (react-dom.development.js:14489)
at performUnitOfWork (react-dom.development.js:17014)
at workLoop (react-dom.development.js:17054)
at HTMLUnknownElement.callCallback (react-dom.development.js:149)
at Object.invokeGuardedCallbackDev (react-dom.development.js:199)
at invokeGuardedCallback (react-dom.development.js:256)
I'm trying to use
RangeCalendar
insidePicker
but I keep getting this error:My implementation looks like this:
I don't have the same issue when using the
Calendar
component from:Is my code missing something?