freqdec/datePicker — Issue #4: Timing of dateset callback
Author: phillipkoebbe
Created: 2011-12-12 15:02:23+00:00
State: open

This isn't so much an issue as an inquiry. I searched for an email address for you but didn't find one. Either I didn't search hard/long enough (highly likely), or you don't want to have emails sent directly to you (quite possible, which is fine...just acknowledging the possibilities).

I've noticed that when my dateset callback is called, the associated form element has not yet had its value updated. I looked at the code, and I see that you are calling the dateset callback right before returnFormattedDate, which is where the value gets updated. I'm wondering if it would make more sense to call the dateset callback after updating the value in returnFormattedDate.

I do see, however, there is one time you call the dateset callback without calling returnFormattedDate (in changeHandler) and one time you call returnFormattedDate without calling the dateset callback (in setDateFromInput). Will you shed some light on the reasoning?

Beyond that, is it possible for datePicker to fire the associated form element's change event after updating it? That would really solve my problem and possibly be the right behavior.