aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorPaul Capron <PaulCapron@users.noreply.github.com>2020-10-14 23:53:11 +0200
committerGitHub <noreply@github.com>2020-10-14 23:53:11 +0200
commitf5d38e2e05bd54073c2bf8e8210b78b2cf2637d8 (patch)
treeefe42c8dd3eadcb40d3ecea73e4a068c9b91c802 /ui
parentbfffac3fd5e3d5ce43070f9437d43005fc5eaeb2 (diff)
downloadjquery-ui-f5d38e2e05bd54073c2bf8e8210b78b2cf2637d8.tar.gz
jquery-ui-f5d38e2e05bd54073c2bf8e8210b78b2cf2637d8.zip
Focusable: Fix handling of `visibility: collapse`
"collapse" is similar to "hidden", with a slight difference in the case of tr/tbody/td/colgroup elements. See https://www.w3.org/TR/CSS22/visufx.html#visibility See https://www.w3.org/TR/CSS22/tables.html#dynamic-effects See https://developer.mozilla.org/en-US/docs/Web/CSS/visibility#Table_example "visibility: collapse" elements are always not focusable, though. Commit d3025968f34 introduced a regression by testing with `!== "hidden"` instead of `=== "visible"`. Closes gh-1843
Diffstat (limited to 'ui')
-rw-r--r--ui/focusable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/focusable.js b/ui/focusable.js
index b1a7b61e2..433474fcd 100644
--- a/ui/focusable.js
+++ b/ui/focusable.js
@@ -70,7 +70,7 @@ function visible( element ) {
element = element.parent();
visibility = element.css( "visibility" );
}
- return visibility !== "hidden";
+ return visibility === "visible";
}
$.extend( $.expr.pseudos, {