aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-23 15:12:54 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-23 15:12:54 -0400
commit86a958d3aa04a5928484d16b27a4d3eea39142e4 (patch)
tree52fd0c86b08a9cacb1c866c4d3ce4197b868d29d /ui
parent97b4813f30a0f197e96ec51bdd1d23cbc571add0 (diff)
downloadjquery-ui-86a958d3aa04a5928484d16b27a4d3eea39142e4.tar.gz
jquery-ui-86a958d3aa04a5928484d16b27a4d3eea39142e4.zip
Core: Update :focsable and :tabbable to handle parents with no height/width, but visible overflow. Fixes #8643 - :focusable pseudo-selector does not find elements if parent has 0x0 dimension.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.core.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js
index e569eea42..2e9d53ae3 100644
--- a/ui/jquery.ui.core.js
+++ b/ui/jquery.ui.core.js
@@ -198,10 +198,10 @@ function focusable( element, isTabIndexNotNaN ) {
}
function visible( element ) {
- return !$( element ).parents().andSelf().filter(function() {
- return $.css( this, "visibility" ) === "hidden" ||
- $.expr.filters.hidden( this );
- }).length;
+ return $.expr.filters.visible( element ) &&
+ !$( element ).parents().andSelf().filter(function() {
+ return $.css( this, "visibility" ) === "hidden";
+ }).length;
}
$.extend( $.expr[ ":" ], {