mominsamir / smDateTimeRangePicker

Angular Material Date Picker, DateTime Picker, Date Range Picker, Date Time range picker
http://mominsamir.github.io/smDateTimeRangePicker/
MIT License
130 stars 50 forks source link

Unable to cancel from Year Months view to Month day view #139

Closed igni2017 closed 7 years ago

igni2017 commented 7 years ago

From the Custom range, I clicked on Month year on top as show in the snapshot d1 It shows the Year and months view as below d2 When I click on cancel it closes the popup but when I select the custom range again it shows the year months view instead of the default view with Month and date.

mailmrmanoj commented 7 years ago

+1

oscar09 commented 7 years ago

Fix has been submitted.

Cancel button will take you back to the 1st selection list. When the "custom range" button is clicked again, the DATE view is displayed instead of the 'YEAR' view. The same behaviour happens when the user clicks outside of the calendar window. I also added a "back to calendar" link which will take you back to the DATE view when the YEAR view is currently active.

Please test and let me know if you find anything.