]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Properly handle datepickers attached to inputs that are hidden using...
authorScott González <scott.gonzalez@gmail.com>
Tue, 15 Feb 2011 13:38:09 +0000 (08:38 -0500)
committerScott González <scott.gonzalez@gmail.com>
Tue, 15 Feb 2011 13:39:47 +0000 (08:39 -0500)
ui/jquery.ui.datepicker.js

index 018c6cf84c46553535e0709a2174506e8df1dfc4..6c2e90795cc4633661ea91f9a0a6efe67a02839a 100644 (file)
@@ -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();