diff --git a/ui/ui.core.js b/ui/ui.core.js index cae5af7e2..402baa1ef 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -171,7 +171,7 @@ $.extend($.expr[':'], { var nodeName = a.nodeName.toLowerCase(); function isVisible(element) { - return !$(element).parents().andSelf().filter(':hidden').length; + return !($(element).is(':hidden') || $(element).parents(':hidden').length); } return (