mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Datepicker: Properly handle datepickers attached to inputs that are hidden using CSS. Fixes #6988 - Datepicker: Treat all hidden text fields the same.
This commit is contained in:
2
ui/jquery.ui.datepicker.js
vendored
2
ui/jquery.ui.datepicker.js
vendored
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user