Skip to content

Commit

Permalink
Datepicker: Properly handle datepickers attached to inputs that are h…
Browse files Browse the repository at this point in the history
…idden using CSS. Fixes #6988 - Datepicker: Treat all hidden text fields the same.
  • Loading branch information
scottgonzalez committed Feb 15, 2011
1 parent c4a7f45 commit a3cba34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ $.extend(Datepicker.prototype, {
_findPos: function(obj) {
var inst = this._getInst(obj);
var isRTL = this._get(inst, 'isRTL');
while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) {
while (obj && (obj.type == 'hidden' || obj.nodeType != 1 || $.expr.filters.hidden(obj))) {
obj = obj[isRTL ? 'previousSibling' : 'nextSibling'];
}
var position = $(obj).offset();
Expand Down

0 comments on commit a3cba34

Please sign in to comment.