mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
in $.ui.focusable, added <details> and <summary> to list of elements assumed focusable
This commit is contained in:
parent
74f8a0ac95
commit
e71bb18d13
@ -39,7 +39,7 @@ $.ui.focusable = function( element, hasTabindex ) {
|
||||
return img.length > 0 && img.is( ":visible" );
|
||||
}
|
||||
|
||||
if ( /^(input|select|textarea|button|object)$/.test( nodeName ) ) {
|
||||
if ( /^(input|select|textarea|button|object|details|summary)$/.test( nodeName ) ) {
|
||||
focusableIfVisible = !element.disabled;
|
||||
|
||||
if ( focusableIfVisible ) {
|
||||
|
Loading…
Reference in New Issue
Block a user