mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Handle empty string for animation duration.
Fixes #5259 - DatePicker will not ever close.
This commit is contained in:
parent
b2ef0fcc9e
commit
c91e1cc86a
2
ui/jquery.ui.datepicker.js
vendored
2
ui/jquery.ui.datepicker.js
vendored
@ -646,7 +646,7 @@ $.extend(Datepicker.prototype, {
|
||||
inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
|
||||
else
|
||||
inst.dpDiv[showAnim || 'show']((showAnim ? duration : null), postProcess);
|
||||
if (!showAnim)
|
||||
if (!showAnim || !duration)
|
||||
postProcess();
|
||||
if (inst.input.is(':visible') && !inst.input.is(':disabled'))
|
||||
inst.input.focus();
|
||||
|
Loading…
Reference in New Issue
Block a user