aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
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:39:47 -0500
commita3cba34a4d99756e7590fee391fee1bdf06d8a5f (patch)
treec702afb164d06333ec34b104f16abb2fff736515 /ui/jquery.ui.datepicker.js
parentc4a7f45dbcd389fa823ee1973ca1fd4a13f6704a (diff)
downloadjquery-ui-a3cba34a4d99756e7590fee391fee1bdf06d8a5f.tar.gz
jquery-ui-a3cba34a4d99756e7590fee391fee1bdf06d8a5f.zip
Datepicker: Properly handle datepickers attached to inputs that are hidden using CSS. Fixes #6988 - Datepicker: Treat all hidden text fields the same.
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-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();