View Full Version : datefield / datepicker

17 Feb 2017, 10:45 AM
It is my understanding that the datepicker fires a select and this populates the field in the associated datefield. It seems then that the datefield does not fire a change event. Since there is no beforeselect event in the picker, how is one supposed to compare the the currently selected date with the previous one?

Gary Schlosberg
17 Feb 2017, 11:58 AM
The datefield seems to fire a change event in this test case taken from the doc example:

17 Feb 2017, 12:30 PM
I see nothing in console.log when I change the date.

Gary Schlosberg
17 Feb 2017, 3:34 PM
The listener is only hooked up to the second date field, sorry. I just updated it to be on both. If that wasn't the issue, do you not see the old and new values?

17 Feb 2017, 6:28 PM
Now after fooling around with the code the change event is being triggered. Not certain why it wasn't before but thanks for insisting.