react-calendar: onChange function is not triggered on React 15.x
Hello @wojtekmaj
I am using your library in a pretty vanila way, but the call back onChange
is never called when I select something a date in my calendar. Take a look:
Any idea? My version in my package.json is "react-calendar": "^2.13.0"
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 20 (8 by maintainers)
@devsli, @kleberpinel, @yummyelin I believe the issue has been resolved in version 2.13.4. Thank you SO much for your patience. You helped me a lot. Please confirm if the fix works for you - although it does here 😃 https://codesandbox.io/s/r0989558l4
I had the same issue. Updating my React dependencies solved the issue. However, I do not explain why it didn’t work in the first place.
Thanks @sgnl for the links. It helped found the differences.
I think you can try the peer dependency
Is it enough?
Here the faulty example: https://codesandbox.io/s/2kz06l3p0
The only difference here is React and ReactDOM are of 15.6.1 version
Could you post up the example on https://codesandbox.io/ ?
I see that the docs have similar code but thanks for trying my suggestions anyway 👍
Hey @sgnl, I just tried all of them, none looks to be working.
the
rendering
log is just to show that is passing through that code and is rendering the component.Any other suggestion ?
Curious as to what the errors above the “rendering” log?