File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -274,9 +274,7 @@ export class Table implements AfterViewInit, OnDestroy {
274274
275275 static setTabIndex ( element : HTMLElement , index : - 1 | 0 ) {
276276 const focusElementList = getFocusElementList ( element , tabbableSelectorIgnoreTabIndex ) ;
277- if ( element . firstElementChild && element . firstElementChild . classList . contains ( "bx--table-sort" ) && focusElementList . length > 1 ) {
278- focusElementList [ 1 ] . tabIndex = index ;
279- } else if ( focusElementList . length > 0 ) {
277+ if ( element . firstElementChild && element . firstElementChild . classList . contains ( "bx--table-sort" ) && focusElementList . length > 0 ) {
280278 focusElementList [ 0 ] . tabIndex = index ;
281279 } else {
282280 element . tabIndex = index ;
@@ -285,9 +283,7 @@ export class Table implements AfterViewInit, OnDestroy {
285283
286284 static focus ( element : HTMLElement ) {
287285 const focusElementList = getFocusElementList ( element , tabbableSelectorIgnoreTabIndex ) ;
288- if ( element . firstElementChild && element . firstElementChild . classList . contains ( "bx--table-sort" ) && focusElementList . length > 1 ) {
289- focusElementList [ 1 ] . focus ( ) ;
290- } else if ( focusElementList . length > 0 ) {
286+ if ( element . firstElementChild && element . firstElementChild . classList . contains ( "bx--table-sort" ) && focusElementList . length > 0 ) {
291287 focusElementList [ 0 ] . focus ( ) ;
292288 } else {
293289 element . focus ( ) ;
You can’t perform that action at this time.
0 commit comments