@@ -45,10 +45,10 @@ export default class RowAggregator extends shouldUpdater(eventDelegater(React.Co
4545 return this . shouldUpdateRowContent ;
4646 }
4747
48- isRenderExpandColumnInLeft (
49- expandColumnPosition = Const . INDICATOR_POSITION_LEFT
48+ isRenderFunctionColumnInLeft (
49+ position = Const . INDICATOR_POSITION_LEFT
5050 ) {
51- return expandColumnPosition === Const . INDICATOR_POSITION_LEFT ;
51+ return position === Const . INDICATOR_POSITION_LEFT ;
5252 }
5353
5454 render ( ) {
@@ -71,7 +71,7 @@ export default class RowAggregator extends shouldUpdater(eventDelegater(React.Co
7171 ...rest
7272 } = this . props ;
7373 const key = _ . get ( row , keyField ) ;
74- const { hideSelectColumn, clickToSelect } = selectRow ;
74+ const { hideSelectColumn, selectColumnPosition , clickToSelect } = selectRow ;
7575 const { showExpandColumn, expandColumnPosition } = expandRow ;
7676
7777 const newAttrs = this . delegate ( { ...attrs } ) ;
@@ -95,7 +95,7 @@ export default class RowAggregator extends shouldUpdater(eventDelegater(React.Co
9595 ) ] ;
9696
9797 if ( ! hideSelectColumn ) {
98- childrens . unshift ( (
98+ const selectCell = (
9999 < SelectionCell
100100 { ...selectRow }
101101 key = "selection-cell"
@@ -105,7 +105,12 @@ export default class RowAggregator extends shouldUpdater(eventDelegater(React.Co
105105 disabled = { ! selectable }
106106 tabIndex = { tabIndexCell ? tabIndexStart ++ : - 1 }
107107 />
108- ) ) ;
108+ ) ;
109+ if ( this . isRenderFunctionColumnInLeft ( selectColumnPosition ) ) {
110+ childrens . unshift ( selectCell ) ;
111+ } else {
112+ childrens . push ( selectCell ) ;
113+ }
109114 }
110115
111116 if ( showExpandColumn ) {
@@ -120,7 +125,7 @@ export default class RowAggregator extends shouldUpdater(eventDelegater(React.Co
120125 tabIndex = { tabIndexCell ? tabIndexStart ++ : - 1 }
121126 />
122127 ) ;
123- if ( this . isRenderExpandColumnInLeft ( expandColumnPosition ) ) {
128+ if ( this . isRenderFunctionColumnInLeft ( expandColumnPosition ) ) {
124129 childrens . unshift ( expandCell ) ;
125130 } else {
126131 childrens . push ( expandCell ) ;
0 commit comments