wvega / timepicker

A jQuery plugin to enhance standard form input fields helping users to select (or type) times
http://timepicker.co
GNU General Public License v2.0
216 stars 92 forks source link

Change event is triggered at init #102

Open princeofnaxos opened 7 years ago

princeofnaxos commented 7 years ago

The change event is also triggered when the plugin is initialised. As I use the change event to save the chosen time, my save process runs twice.

I would opt for a separate 'init' event. The change event should only be triggered when choosing something from the drop down, or when actually typing in the field.