freqdec / datePicker

An attempt at writing a flexible, framework free, feature-rich and accessible datepicker
http://freqdec.github.io/datePicker/
MIT License
171 stars 56 forks source link

This bugfix causes the "onchange" event of elem to fire if datepicker modifies the value #31

Closed jcunningdev closed 10 years ago

jcunningdev commented 10 years ago

Previously, no "onchange" event was fired by the element if the date was changed in the datepicker gui. This modification now fires the onchange event if the data is changed by datepicker.

freqdec commented 10 years ago

Hi,

This is expected behaviour. It's bad manners to fire the onchange event in JS. The dateset callback can be used to deal with onchangy type functionality like that.

Thanks for the pull request anyway and apologies it's taken me a lifetime to reply.