From 7f3ac47f775706c2b245181a8c7eaca280fca234 Mon Sep 17 00:00:00 2001 From: Whien Date: Fri, 22 Jul 2016 09:42:39 +0800 Subject: [PATCH] fixed maxHeight allow string and number --- src/BootstrapTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapTable.js b/src/BootstrapTable.js index 298a8163c..541e85da0 100644 --- a/src/BootstrapTable.js +++ b/src/BootstrapTable.js @@ -912,7 +912,7 @@ class BootstrapTable extends Component { BootstrapTable.propTypes = { keyField: PropTypes.string, height: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]), - maxHeight: PropTypes.string, + maxHeight: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]), data: PropTypes.oneOfType([ PropTypes.array, PropTypes.object ]), remote: PropTypes.bool, // remote data, default is false striped: PropTypes.bool,