File tree Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,6 @@ const FixedHolder = React.forwardRef<HTMLDivElement, FixedHeaderProps<any>>((pro
178
178
< TableComponent
179
179
style = { {
180
180
tableLayout,
181
- visibility : noData || mergedColumnWidth ? null : 'hidden' ,
182
181
minWidth : '100%' ,
183
182
// https://github.com/ant-design/ant-design/issues/54894
184
183
width : scrollX ,
Original file line number Diff line number Diff line change @@ -108,37 +108,6 @@ describe('Table.FixedHeader', () => {
108
108
) ;
109
109
} ) ;
110
110
111
- it ( 'show header when data is null' , async ( ) => {
112
- const columns = [
113
- {
114
- title : 'Name' ,
115
- dataIndex : 'name' ,
116
- key : 'name' ,
117
- } ,
118
- {
119
- title : 'Age' ,
120
- dataIndex : 'age' ,
121
- key : 'age' ,
122
- } ,
123
- ] ;
124
-
125
- const wrapper = mount (
126
- < Table
127
- columns = { columns }
128
- data = { [ ] }
129
- scroll = { {
130
- x : true ,
131
- y : 100 ,
132
- } }
133
- /> ,
134
- ) ;
135
-
136
- await safeAct ( wrapper ) ;
137
- expect ( wrapper . find ( '.rc-table-header table' ) . props ( ) . style ) . toEqual (
138
- expect . objectContaining ( { visibility : null } ) ,
139
- ) ;
140
- } ) ;
141
-
142
111
it ( 'rtl' , async ( ) => {
143
112
const wrapper = mount (
144
113
< Table
You can’t perform that action at this time.
0 commit comments