mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-06-28 21:20:04 +00:00
fix #1146
This commit is contained in:
@@ -44,7 +44,7 @@ export default class ExpandCell extends Component {
|
||||
if (tabIndex !== -1) attrs.tabIndex = tabIndex;
|
||||
|
||||
return (
|
||||
<td onClick={ this.handleClick } { ...attrs }>
|
||||
<td className="expand-cell" onClick={ this.handleClick } { ...attrs }>
|
||||
{
|
||||
expandColumnRenderer ? expandColumnRenderer({
|
||||
expandable,
|
||||
|
||||
@@ -28,7 +28,7 @@ export default class ExpansionHeaderCell extends Component {
|
||||
};
|
||||
|
||||
return (
|
||||
<th data-row-selection { ...attrs }>
|
||||
<th className="expand-cell-header" data-row-selection { ...attrs }>
|
||||
{
|
||||
expandHeaderColumnRenderer ?
|
||||
expandHeaderColumnRenderer({ isAnyExpands }) :
|
||||
|
||||
@@ -86,7 +86,7 @@ export default class SelectionCell extends Component {
|
||||
<BootstrapContext.Consumer>
|
||||
{
|
||||
({ bootstrap4 }) => (
|
||||
<td onClick={ this.handleClick } { ...attrs }>
|
||||
<td className="selection-cell" onClick={ this.handleClick } { ...attrs }>
|
||||
{
|
||||
selectionRenderer ? selectionRenderer({
|
||||
mode: inputType,
|
||||
|
||||
@@ -112,7 +112,7 @@ export default class SelectionHeaderCell extends Component {
|
||||
);
|
||||
}
|
||||
return (
|
||||
<th data-row-selection { ...attrs }>{ content }</th>
|
||||
<th className="selection-cell-header" data-row-selection { ...attrs }>{ content }</th>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
exports[`<SelectionCell /> render should render component correctly 1`] = `
|
||||
<td
|
||||
className="selection-cell"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user