vitalets / combodate

Dropdown date and time picker
http://vitalets.github.com/combodate
207 stars 82 forks source link

Combodate not firing parent change() function #20

Open chrismingay opened 10 years ago

chrismingay commented 10 years ago

First off, thanks for ComboDate, it's very useful :)

If I use combodate to change an input, the change() function doesn't get fired for the parent input.

I've managed to "fix" this by changing the the change function

this.$widget.on('change', 'select', $.proxy(function(){ }

From

this.$element.val(this.getValue());

To

this.$element.val(this.getValue());
this.$element.trigger('change');

This works as I'd expect it, but I've raised as an issue because I'm no jquery expert.