trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

$.datepicker._clearDate is broken #757

Closed stijnherreman closed 2 months ago

stijnherreman commented 9 years ago

The way this addon overrides some parts of Datepicker is breaking $.datepicker._clearDate.

_clearDate calls _selectDate with an empty string. The overridden _selectDate calls _notifyChange while the original one does not, at least not directly. _notifyChange checks if onChangeMonthYear is set. This defaults to null, but the addon overrides this with a function. Because of that, the field and altField are set again.

Is it possible to solve this in a reasonable way, or will some kind of workaround be required?

williamdes commented 2 months ago

Cleanup day 😁