Skip to content

Commit dfbf587

Browse files
committed
fix conflicts
2 parents 813b753 + 37fab37 commit dfbf587

File tree

6 files changed

+136
-13
lines changed

6 files changed

+136
-13
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<a name="v3.3.9"></a>
2+
# [v3.3.9](https://github.com/AllenFang/react-bootstrap-table/compare/v3.3.8...v3.3.9) (2017-06-08)
3+
## Bug fixes
4+
* Fixed TypeError: this.props.children.filter is not a function([80fb5a6](https://github.com/AllenFang/react-bootstrap-table/commit/80fb5a69cee6ce4357bbb11128f2fbc19c4300e1))
5+
6+
<a name="v3.3.8"></a>
7+
# [v3.3.8](https://github.com/AllenFang/react-bootstrap-table/compare/v3.3.7...v3.3.8) (2017-06-02)
8+
## Bug fixes
9+
* `currSizePerPage` should be string([6c6185d](https://github.com/AllenFang/react-bootstrap-table/commit/6c6185d6d5f06e66ce03c304a6f5d1bb85563935))
10+
11+
## Enhancement
12+
* allow `options.prePage`, `options.nextPage`, `options.firstPage` and `options.lastPage` to accept any type([a2ab8fb](https://github.com/AllenFang/react-bootstrap-table/commit/a2ab8fbaba2a072403fcc467b5f7d7cf8e0de0e7))
13+
114
<a name="v3.3.7"></a>
215
# [v3.3.7](https://github.com/AllenFang/react-bootstrap-table/compare/v3.3.6...v3.3.7) (2017-05-22)
316
## Enhancement

dist/react-bootstrap-table.js

Lines changed: 100 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-bootstrap-table.js.map

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-bootstrap-table.min.js

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BootstrapTable.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,8 +1275,9 @@ class BootstrapTable extends Component {
12751275
}
12761276
}
12771277
} else {
1278-
React.Children.forEach(this.props.children.filter(_ => !!_), (child, i) => {
1279-
if (child.props.width) {
1278+
// debugger;
1279+
React.Children.forEach(this.props.children, (child, i) => {
1280+
if (child && child.props.width) {
12801281
header[i].style.width = `${child.props.width}px`;
12811282
header[i].style.minWidth = `${child.props.width}px`;
12821283
}
@@ -1441,10 +1442,10 @@ BootstrapTable.propTypes = {
14411442
noDataText: PropTypes.oneOfType([ PropTypes.string, PropTypes.object ]),
14421443
withoutNoDataText: PropTypes.bool,
14431444
handleConfirmDeleteRow: PropTypes.func,
1444-
prePage: PropTypes.string,
1445-
nextPage: PropTypes.string,
1446-
firstPage: PropTypes.string,
1447-
lastPage: PropTypes.string,
1445+
prePage: PropTypes.any,
1446+
nextPage: PropTypes.any,
1447+
firstPage: PropTypes.any,
1448+
lastPage: PropTypes.any,
14481449
prePageTitle: PropTypes.string,
14491450
nextPageTitle: PropTypes.string,
14501451
firstPageTitle: PropTypes.string,

src/pagination/PaginationList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class PaginationList extends Component {
150150
dropdown = sizePerPageDropDown({
151151
open: this.state.open,
152152
hideSizePerPage,
153-
currSizePerPage: sizePerPage,
153+
currSizePerPage: String(sizePerPage),
154154
sizePerPageList,
155155
toggleDropDown: this.toggleDropDown,
156156
changeSizePerPage: this.changeSizePerPage

0 commit comments

Comments
 (0)