Datepicker v3.4 enable needs to reattach focus event
|Reported by:||mnichols||Owned by:|
|Keywords:||ui datepicker enable||Cc:|
$("#input").datepicker("enable") needs to reattach the focus event since disabling the control removes the focus event . The patch simply reattaches the focus event to the target upon enable.
To test, start the page with datepicker("disable"), then try to datepicker("enable"). You'll find the focus event isn't applied to the target anymore.