bootstrap-year-calendar icon indicating copy to clipboard operation
bootstrap-year-calendar copied to clipboard

_renderDataSource monthData incorrect

Open PetarDDobrev opened this issue 6 years ago • 0 comments

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

PetarDDobrev avatar Jul 20 '17 12:07 PetarDDobrev