Datepicker calling onChangeMonthYear before updating itself

Datepicker calling onChangeMonthYear before updating itself

Hi all

I'm using the Datpicker, and it's great, except for one problem... it is calling the onChangeMonthYear event BEFORE it updates itself.

This is a problem for at least 2 reasons...

a) if you want to modify the Datepicker component itself during the onChangeMonthYear event - all of your changes will get wiped after this event is called.

b) if you want to read the contents of the calendar, it will still contain the previous month's data, instead of the newly selected month's data.

Simple solution seems to be to make the onChangeMonthYear event fire AFTER the Datepicker re-writes itself, and this will solve both problems. I can't think of any down-sides to doing this? If there are, then perhaps we need a beforeChangeMonthYear and an afterChangeMonthYear event?

Thanks!