question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onChange function is not triggered on React 15.x

See original GitHub issue

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:

not_working

Any idea? My version in my package.json is "react-calendar": "^2.13.0"

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
wojtekmajcommented, Mar 14, 2018

@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

2reactions
jdebarochezcommented, Feb 17, 2018

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.

image

Thanks @sgnl for the links. It helped found the differences.

Read more comments on GitHub >

github_iconTop Results From Across the Web

onChange event not triggered in react when using select jsx ...
I am trying to trigger the onChange event of with select jsx/html attribute. The event doesn't fire, here is the code:
Read more >
Handling Events - React
React events are named using camelCase, rather than lowercase. With JSX you pass a function as the event handler, rather than a string....
Read more >
Simulate React On-Change On Controlled Components
This works fine in normal cases because a “real” browser initiated event doesn't trigger sets on the element.value. You can bail out of...
Read more >
How To Handle DOM and Window Events with React
By the end of this tutorial, you'll be able to work with a variety of event handlers and apply the catalog of events...
Read more >
react input onchange doesn't work - You.com | The AI Search ...
onChange = {this.changeTitle (this)} react will call mentioned function automatically. you need to call the function like this: onChange= {this.changeTitle} and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found