Skip to content

Commit f093ea3

Browse files
authored
Merge pull request #1363 from vtex/fix/renderFullTable
Render the complete table when scrolling is disabled
2 parents 46813dd + 4920acb commit f093ea3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
### Fixed
1111

12-
- PageBlock responsiveness issue on aside variation.
12+
- **PageBlock** responsiveness issue on aside variation.
13+
- **EXPERIMENTAL_TableV2** rows height when using `disableScroll`.
1314

1415
## [9.135.1] - 2021-01-28
1516

react/components/EXPERIMENTAL_Table/Sections/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ function Sections(
3232

3333
return (
3434
<div
35-
style={{ height: tableHeight, ...motion }}
36-
className={classNames('mw-100', ORDER_CLASSNAMES.TABLE, {
37-
'overflow-x-auto overflow-y-auto overflow-hidden': !disableScroll,
35+
style={{ height: disableScroll ? 'auto' : tableHeight, ...motion }}
36+
className={classNames('mw-100 overflow-x-auto', ORDER_CLASSNAMES.TABLE, {
37+
'overflow-y-auto': !disableScroll,
3838
})}>
3939
<table
4040
ref={ref}

0 commit comments

Comments
 (0)