only summary is added to the element list

This commit is contained in:
bbenjamin 2019-03-29 15:19:18 -04:00
parent e71bb18d13
commit 7a412179d0

View File

@ -39,7 +39,7 @@ $.ui.focusable = function( element, hasTabindex ) {
return img.length > 0 && img.is( ":visible" );
}
if ( /^(input|select|textarea|button|object|details|summary)$/.test( nodeName ) ) {
if ( /^(input|select|textarea|button|object|summary)$/.test( nodeName ) ) {
focusableIfVisible = !element.disabled;
if ( focusableIfVisible ) {