File tree Expand file tree Collapse file tree 3 files changed +10
-16
lines changed
packages/components/src/components/hds/advanced-table Expand file tree Collapse file tree 3 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -661,10 +661,12 @@ export default class HdsAdvancedTable extends Component<HdsAdvancedTableSignatur
661
661
private _isStickyColumn = (
662
662
column : HdsAdvancedTableColumnType
663
663
) : boolean | undefined => {
664
- if ( this . hasStickyFirstColumn && column . isFirst ) {
665
- return true ;
666
- } else if ( this . hasStickyFirstColumn === false ) {
667
- return false ;
664
+ if ( column . isFirst ) {
665
+ if ( this . hasStickyFirstColumn ) {
666
+ return true ;
667
+ } else if ( this . hasStickyFirstColumn === false ) {
668
+ return false ;
669
+ }
668
670
}
669
671
return undefined ;
670
672
} ;
Original file line number Diff line number Diff line change @@ -101,13 +101,9 @@ export default class HdsAdvancedTableThSort extends Component<HdsAdvancedTableTh
101
101
}
102
102
103
103
get showContextMenu ( ) : boolean {
104
- const { column , isStickyColumn, hasResizableColumns } = this . args ;
104
+ const { hasResizableColumns , isStickyColumn } = this . args ;
105
105
106
- return (
107
- ( hasResizableColumns ||
108
- ( isStickyColumn !== undefined && column && column . isFirst ) ) ??
109
- false
110
- ) ;
106
+ return ( hasResizableColumns || isStickyColumn !== undefined ) ?? false ;
111
107
}
112
108
113
109
get classNames ( ) : string {
Original file line number Diff line number Diff line change @@ -144,13 +144,9 @@ export default class HdsAdvancedTableTh extends Component<HdsAdvancedTableThSign
144
144
}
145
145
146
146
get showContextMenu ( ) : boolean {
147
- const { column , isStickyColumn, hasResizableColumns } = this . args ;
147
+ const { hasResizableColumns , isStickyColumn } = this . args ;
148
148
149
- return (
150
- ( hasResizableColumns ||
151
- ( isStickyColumn !== undefined && column && column . isFirst ) ) ??
152
- false
153
- ) ;
149
+ return ( hasResizableColumns || isStickyColumn !== undefined ) ?? false ;
154
150
}
155
151
156
152
@action onFocusTrapDeactivate ( ) : void {
You can’t perform that action at this time.
0 commit comments