File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ function DataTable<T>(props: TableProps<T>): JSX.Element {
123
123
footer = defaultProps . footer ,
124
124
currentSortColumnId = defaultProps . currentSortColumnId ,
125
125
currentSortDirection = defaultProps . currentSortDirection ,
126
+ isInnerTable = defaultProps . isInnerTable ,
126
127
} = props ;
127
128
128
129
const {
@@ -584,12 +585,13 @@ function DataTable<T>(props: TableProps<T>): JSX.Element {
584
585
</ Wrapper >
585
586
</ ResponsiveWrapper >
586
587
587
- { freezedColumns . length > 0 && (
588
+ { ! isInnerTable && freezedColumns . length > 0 && (
588
589
< div
589
590
style = { {
590
591
position : 'absolute' ,
591
592
top : 0 ,
592
593
left : 0 ,
594
+ maxWidth : '100%' ,
593
595
} }
594
596
>
595
597
< Table disabled = { disabled } className = "rdt_Table" role = "table" >
Original file line number Diff line number Diff line change @@ -111,4 +111,5 @@ export const defaultProps = {
111
111
footer : null ,
112
112
currentSortColumnId : null ,
113
113
currentSortDirection : undefined ,
114
+ isInnerTable : false ,
114
115
} ;
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ export type TableProps<T> = {
120
120
footer ?: React . ReactNode ;
121
121
currentSortColumnId ?: string | number | null ;
122
122
currentSortDirection ?: SortOrder ;
123
+ isInnerTable ?: boolean ;
123
124
} ;
124
125
125
126
export type TableColumnBase = {
You can’t perform that action at this time.
0 commit comments