File tree Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 22
33## NEXT VERSION
44
5+ - fix: scroll position would be reset to top if column becomes frozen
6+
57## v1.10.7 (2020-07-28)
68
79- fix: ` getTotalRowsHeight ` could be different before/after render in dynamic mode on initial render
Original file line number Diff line number Diff line change @@ -562,6 +562,7 @@ class BaseTable extends React.PureComponent {
562562 ref = { this . _setLeftTableRef }
563563 data = { this . _data }
564564 columns = { this . columnManager . getLeftFrozenColumns ( ) }
565+ initialScrollTop = { this . _scroll . scrollTop }
565566 width = { columnsWidth + offset }
566567 height = { containerHeight }
567568 headerHeight = { headerHeight }
@@ -595,6 +596,7 @@ class BaseTable extends React.PureComponent {
595596 ref = { this . _setRightTableRef }
596597 data = { this . _data }
597598 columns = { this . columnManager . getRightFrozenColumns ( ) }
599+ initialScrollTop = { this . _scroll . scrollTop }
598600 width = { columnsWidth + scrollbarWidth }
599601 height = { containerHeight }
600602 headerHeight = { headerHeight }
Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ export default class App extends React.Component {
175175 return (
176176 < Table
177177 fixed
178- selectable
179178 columns = { this . columns }
180179 data = { data }
181180 sortBy = { sortBy }
Original file line number Diff line number Diff line change @@ -193,7 +193,6 @@ export default class App extends React.Component {
193193 </ button >
194194 < Table
195195 fixed
196- selectable
197196 columns = {
198197 ! ! this . state . toggle ? this . columns . slice ( 0 , 4 ) : this . columns
199198 }
You can’t perform that action at this time.
0 commit comments