Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…idden using CSS. Fixes #6988 - Datepicker: Treat all hidden text fields the same.

(cherry picked from commit 6fbee25)
  • Loading branch information...
commit cf9dac6c1704150d40191573767e5bfa58dcd9d2 1 parent 9191ee3
Scott González scottgonzalez authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  ui/jquery.ui.datepicker.js
2  ui/jquery.ui.datepicker.js
@@ -754,7 +754,7 @@ $.extend(Datepicker.prototype, {
754 754 _findPos: function(obj) {
755 755 var inst = this._getInst(obj);
756 756 var isRTL = this._get(inst, 'isRTL');
757   - while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) {
  757 + while (obj && (obj.type == 'hidden' || obj.nodeType != 1 || $.expr.filters.hidden(obj))) {
758 758 obj = obj[isRTL ? 'previousSibling' : 'nextSibling'];
759 759 }
760 760 var position = $(obj).offset();

0 comments on commit cf9dac6

Please sign in to comment.
Something went wrong with that request. Please try again.