DanielYKPan / date-range-picker

Angular Date Range Picker
https://danielykpan.github.io/date-range-picker/
MIT License
9 stars 11 forks source link

(dateRangeChange) does not fire when using the shortcut buttons #7

Open jessenic opened 7 years ago

jessenic commented 7 years ago

(dateRangeChange) does not fire when using the "This week", "Last week" etc shortcuts. It does fire when manually selecting dates. Using Angular 4 and Chrome.

jessenic commented 7 years ago

Also [(dateRange)] does not change either. This is visible in the demo too: https://danielykpan.github.io/date-range-picker/

The From/To texts do not change when using the shortcut buttons.

Marineau commented 6 years ago

Hi, to trigger the return of the date object from : xxx to: xxx just add << this.dateRangeChange.emit(Object.assign({}, this.datePick)); >> at the end of each case scenario on the switch(range) case :'tm', case 'lm' etc etc

Cheers