bootstrap-year-calendar
bootstrap-year-calendar copied to clipboard
_renderDataSource monthData incorrect
In "_renderDataSource" function the if statement for pushing month data is incorrect.
if (!(_this.options.dataSource[i].startDate >= lastDate) || (_this.options.dataSource[i].endDate < firstDate))
"!" should be for the result for the both checks, not only for the first one:
if (!(_this.options.dataSource[i].startDate >= lastDate || _this.options.dataSource[i].endDate < firstDate))