dptoot / react-event-calendar

A React calendar component to display events
131 stars 55 forks source link

Fix bug whereby events crossing year boundary could be hidden #9

Open optilude opened 8 years ago

optilude commented 8 years ago

The code only checked for month, not year, so an event spanning across the new year would potentially be hidden/shown when it shouldn't be.

Also, there's a problem whereby the splitting of the date string will result in some numbers being strings, so use parseInt() just in case (I was having a hard time with === compares!)