Skip to content
Permalink
Browse files

Datepicker: Properly handle datepickers attached to inputs that are h…

…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 a3cba34a4d99756e7590fee391fee1bdf06d8a5f
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.datepicker.js
@@ -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();

0 comments on commit a3cba34

Please sign in to comment.
You can’t perform that action at this time.