react-event-calendar icon indicating copy to clipboard operation
react-event-calendar copied to clipboard

Fix bug whereby events crossing year boundary could be hidden

Open optilude opened this issue 10 years ago • 0 comments

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!)

optilude avatar Nov 30 '15 16:11 optilude