File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ function Table<RecordType extends DefaultRecordType>(tableProps: TableProps<Reco
315
315
316
316
if ( fixHeader ) {
317
317
scrollYStyle = {
318
- overflowY : 'scroll ' ,
318
+ overflowY : 'auto ' ,
319
319
maxHeight : scroll . y ,
320
320
} ;
321
321
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ describe('Table.Scroll', () => {
35
35
it ( 'renders scroll.x and scroll.y are both true' , ( ) => {
36
36
const wrapper = mount ( createTable ( { scroll : { x : true , y : 200 } } ) ) ;
37
37
expect ( wrapper . find ( '.rc-table-body' ) . props ( ) . style . overflowX ) . toEqual ( 'auto' ) ;
38
- expect ( wrapper . find ( '.rc-table-body' ) . props ( ) . style . overflowY ) . toEqual ( 'scroll ' ) ;
38
+ expect ( wrapper . find ( '.rc-table-body' ) . props ( ) . style . overflowY ) . toEqual ( 'auto ' ) ;
39
39
} ) ;
40
40
41
41
it ( 'fire scroll event' , ( ) => {
You can’t perform that action at this time.
0 commit comments