Skip to content

Commit ed57ab4

Browse files
committed
fix #1771
1 parent 2423c3a commit ed57ab4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/BootstrapTable.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ class BootstrapTable extends Component {
530530
{ showPaginationOnBottom ? pagination : null }
531531

532532
{ showToolbarOnBottom ? toolBar : null }
533-
<Alert stack={ { limit: 3 } } />
533+
{ this.props.renderAlert ? <Alert stack={ { limit: 3 } } /> : null }
534534
</div>
535535
);
536536
}
@@ -1709,6 +1709,7 @@ BootstrapTable.propTypes = {
17091709
fetchInfo: PropTypes.shape({
17101710
dataTotalSize: PropTypes.number
17111711
}),
1712+
renderAlert: PropTypes.bool,
17121713
exportCSV: PropTypes.bool,
17131714
csvFileName: PropTypes.oneOfType([ PropTypes.string, PropTypes.func ]),
17141715
ignoreSinglePage: PropTypes.bool,
@@ -1876,6 +1877,7 @@ BootstrapTable.defaultProps = {
18761877
fetchInfo: {
18771878
dataTotalSize: 0
18781879
},
1880+
renderAlert: true,
18791881
exportCSV: false,
18801882
csvFileName: 'spreadsheet.csv',
18811883
ignoreSinglePage: false,

0 commit comments

Comments
 (0)