aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-02-15 08:38:09 -0500
committerScott González <scott.gonzalez@gmail.com>2011-02-15 08:38:27 -0500
commitcf9dac6c1704150d40191573767e5bfa58dcd9d2 (patch)
treeac6d9a1a99010ad9d172774467066c8aecff5c70
parent9191ee3cd806c0e93a2cdf37125ff7b70e738e6b (diff)
downloadjquery-ui-cf9dac6c1704150d40191573767e5bfa58dcd9d2.tar.gz
jquery-ui-cf9dac6c1704150d40191573767e5bfa58dcd9d2.zip
Datepicker: Properly handle datepickers attached to inputs that are hidden using CSS. Fixes #6988 - Datepicker: Treat all hidden text fields the same.
(cherry picked from commit 6fbee255d8d895c7e84a4b2eaad2cfadc8a3425a)
-rw-r--r--ui/jquery.ui.datepicker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index 018c6cf84..6c2e90795 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/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();