in $.ui.focusable, added <details> and <summary> to list of elements assumed focusable

This commit is contained in:
bnjmnm 2019-03-15 08:27:12 -04:00
parent 74f8a0ac95
commit e71bb18d13

View File

@ -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 ) {