File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ export class Table implements AfterViewInit, OnDestroy {
281281
282282 static setTabIndex ( element : HTMLElement , index : - 1 | 0 ) {
283283 const focusElementList = getFocusElementList ( element , tabbableSelectorIgnoreTabIndex ) ;
284- if ( element . firstElementChild && element . firstElementChild . classList . contains ( "bx--table-sort" ) && focusElementList . length > 0 ) {
284+ if ( element . firstElementChild && element . firstElementChild . classList . contains ( "bx--table-sort" ) || focusElementList . length > 0 ) {
285285 focusElementList [ 0 ] . tabIndex = index ;
286286 } else {
287287 element . tabIndex = index ;
@@ -290,7 +290,7 @@ export class Table implements AfterViewInit, OnDestroy {
290290
291291 static focus ( element : HTMLElement ) {
292292 const focusElementList = getFocusElementList ( element , tabbableSelectorIgnoreTabIndex ) ;
293- if ( element . firstElementChild && element . firstElementChild . classList . contains ( "bx--table-sort" ) && focusElementList . length > 0 ) {
293+ if ( element . firstElementChild && element . firstElementChild . classList . contains ( "bx--table-sort" ) || focusElementList . length > 0 ) {
294294 focusElementList [ 0 ] . focus ( ) ;
295295 } else {
296296 element . focus ( ) ;
You can’t perform that action at this time.
0 commit comments