From a146e9bcb3bde17628d70b14e850a2e05a2820c9 Mon Sep 17 00:00:00 2001 From: Tai Nguyen Trong Date: Mon, 20 Mar 2023 14:39:05 +0700 Subject: [PATCH] fix: overflowY = 'auto' when set scroll.y --- src/Table.tsx | 2 +- tests/Scroll.spec.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Table.tsx b/src/Table.tsx index f9cbcd84d..cf76742ca 100644 --- a/src/Table.tsx +++ b/src/Table.tsx @@ -315,7 +315,7 @@ function Table(tableProps: TableProps { it('renders scroll.x and scroll.y are both true', () => { const wrapper = mount(createTable({ scroll: { x: true, y: 200 } })); expect(wrapper.find('.rc-table-body').props().style.overflowX).toEqual('auto'); - expect(wrapper.find('.rc-table-body').props().style.overflowY).toEqual('scroll'); + expect(wrapper.find('.rc-table-body').props().style.overflowY).toEqual('auto'); }); it('fire scroll event', () => {