diff options
author | Paul Capron <PaulCapron@users.noreply.github.com> | 2020-10-14 23:53:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 23:53:11 +0200 |
commit | f5d38e2e05bd54073c2bf8e8210b78b2cf2637d8 (patch) | |
tree | efe42c8dd3eadcb40d3ecea73e4a068c9b91c802 /ui | |
parent | bfffac3fd5e3d5ce43070f9437d43005fc5eaeb2 (diff) | |
download | jquery-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.js | 2 |
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, { |