We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8407634 commit 52206d9Copy full SHA for 52206d9
src/TableBody.js
@@ -189,10 +189,12 @@ class TableBody extends Component {
189
}, this);
190
191
if (tableRows.length === 0 && !this.props.withoutNoDataText) {
192
+ const colSpan = this.props.columns.filter(c => !c.hidden).length
193
+ + (isSelectRowDefined ? 1 : 0);
194
tableRows = [
195
<TableRow key='##table-empty##'>
196
<td data-toggle='collapse'
- colSpan={ this.props.columns.length + (isSelectRowDefined ? 1 : 0) }
197
+ colSpan={ colSpan }
198
className='react-bs-table-no-data'>
199
{ this.props.noDataText || Const.NO_DATA_TEXT }
200
</td>
0 commit comments