Skip to content

Commit b5d536b

Browse files
committed
fix #1146
1 parent e667317 commit b5d536b

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

packages/react-bootstrap-table2/src/row-expand/expand-cell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default class ExpandCell extends Component {
4444
if (tabIndex !== -1) attrs.tabIndex = tabIndex;
4545

4646
return (
47-
<td onClick={ this.handleClick } { ...attrs }>
47+
<td className="expand-cell" onClick={ this.handleClick } { ...attrs }>
4848
{
4949
expandColumnRenderer ? expandColumnRenderer({
5050
expandable,

packages/react-bootstrap-table2/src/row-expand/expand-header-cell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class ExpansionHeaderCell extends Component {
2828
};
2929

3030
return (
31-
<th data-row-selection { ...attrs }>
31+
<th className="expand-cell-header" data-row-selection { ...attrs }>
3232
{
3333
expandHeaderColumnRenderer ?
3434
expandHeaderColumnRenderer({ isAnyExpands }) :

packages/react-bootstrap-table2/src/row-selection/selection-cell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default class SelectionCell extends Component {
8686
<BootstrapContext.Consumer>
8787
{
8888
({ bootstrap4 }) => (
89-
<td onClick={ this.handleClick } { ...attrs }>
89+
<td className="selection-cell" onClick={ this.handleClick } { ...attrs }>
9090
{
9191
selectionRenderer ? selectionRenderer({
9292
mode: inputType,

packages/react-bootstrap-table2/src/row-selection/selection-header-cell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default class SelectionHeaderCell extends Component {
112112
);
113113
}
114114
return (
115-
<th data-row-selection { ...attrs }>{ content }</th>
115+
<th className="selection-cell-header" data-row-selection { ...attrs }>{ content }</th>
116116
);
117117
}
118118
}

packages/react-bootstrap-table2/test/row-selection/__snapshots__/selection-cell.test.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
exports[`<SelectionCell /> render should render component correctly 1`] = `
44
<td
5+
className="selection-cell"
56
onClick={[Function]}
67
>
78
<input

0 commit comments

Comments
 (0)