fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
249 stars 252 forks source link

TypeError when setting showWeekNumbers = true #401

Closed manwithtwowatches closed 2 years ago

manwithtwowatches commented 2 years ago

Describe the bug When setting the week numbers flag I get the following error

TypeError: ctx_r33.calendarVariables.left.calendar[row_r32][0].week is not a function
    at DaterangepickerComponent_div_5_table_2_tr_15_td_1_Template (ngx-daterangepicker-material.js:153)

To Reproduce Steps to reproduce the behavior: Make an angular project and use the code copy pasted from the examples page. Any picker with showWeekNumbers = true seems to result in this.

fetrarij commented 2 years ago

@manwithtwowatches Hi, I guess this is solved by your PR? Thank you very much :)

arsolvit commented 2 years ago

Hi @fetrarij! Will this PR be released in npm soon? This issue is so critical for us. Thanks!