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
247 stars 248 forks source link

Select month or year not work #381

Closed dongloc94 closed 3 years ago

dongloc94 commented 3 years ago

Versions

Describe the bug When I use the showdropdowns flag is true, clicking select the month or day it doesn't change the bottom calendar box

bendzinks commented 3 years ago

Hello. monthOrYearChanged must be changed like this if (isLeft) { this.leftCalendar.month = this.leftCalendar.month.month(month).year(year); if (this.linkedCalendars) { this.rightCalendar.month = this.leftCalendar.month.add(1, 'month'); } } else { this.rightCalendar.month = this.rightCalendar.month.month(month).year(year); if (this.linkedCalendars) { this.leftCalendar.month = this.rightCalendar.month.subtract(1, 'month'); } }

michaelferwer commented 3 years ago

I have open a PR for that : https://github.com/fetrarij/ngx-daterangepicker-material/pull/383

dongloc94 commented 3 years ago

@fetrarij please fix it on master.thanks

fetrarij commented 3 years ago

Hello, sorry for the late response. I have just merged it and will release.