onChange function is not triggered on React 15.x
See original GitHub issueHello @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"
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:20 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.