]> 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:38:27 +0000 (08:38 -0500)
(cherry picked from commit 6fbee255d8d895c7e84a4b2eaad2cfadc8a3425a)

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();