Skip to content

Commit 1d13565

Browse files
committed
Add new prop to Caption component
Add new prop of Caption component in order to check if bootstrap is in use
1 parent 8ecdbf6 commit 1d13565

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-bootstrap-table2/src/bootstrap-table.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ class BootstrapTable extends PropsBaseResolver(Component) {
8383

8484
const hasFooter = _.filter(columns, col => _.has(col, 'footer')).length > 0;
8585

86-
const tableCaption = (caption && <Caption>{ caption }</Caption>);
86+
const tableCaption = (
87+
caption && <Caption bootstrap4={ bootstrap4 }>{ caption }</Caption>
88+
);
8789

8890
return (
8991
<div className={ tableWrapperClass }>

0 commit comments

Comments
 (0)