Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a4d54b4

Browse files
committed
Datepicker: Don't use ui-helper-hidden-accessible for initial hiding.
1 parent a9d8549 commit a4d54b4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

themes/base/jquery.ui.datepicker.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* http://docs.jquery.com/UI/Datepicker#theming
99
*/
10-
.ui-datepicker { width: 17em; padding: .2em .2em 0; }
10+
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
1111
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
1212
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
1313
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }

ui/jquery.ui.datepicker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function Datepicker() {
107107
autoSize: false // True to size the input for the date format, false to leave as is
108108
};
109109
$.extend(this._defaults, this.regional['']);
110-
this.dpDiv = $('<div id="' + this._mainDivId + '" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>');
110+
this.dpDiv = $('<div id="' + this._mainDivId + '" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>');
111111
}
112112

113113
$.extend(Datepicker.prototype, {
@@ -272,6 +272,7 @@ $.extend(Datepicker.prototype, {
272272
this._setDate(inst, this._getDefaultDate(inst), true);
273273
this._updateDatepicker(inst);
274274
this._updateAlternate(inst);
275+
inst.dpDiv.show();
275276
},
276277

277278
/* Pop-up the date picker in a "dialog" box.

0 commit comments

Comments
 (0)