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?
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 ifonChangeMonthYear
is set. This defaults tonull
, 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?