From fc84c1c1a2cfbd2bd7ca4d8c329d87953d10ec38 Mon Sep 17 00:00:00 2001 From: AllenFang Date: Sat, 10 Nov 2018 17:09:06 +0800 Subject: [PATCH] 20181110 release --- docs/basic-filter.md | 8 ++++---- website/blog/2018-11-10-version-bump.md | 27 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 website/blog/2018-11-10-version-bump.md diff --git a/docs/basic-filter.md b/docs/basic-filter.md index 5de86e5..f48fd08 100644 --- a/docs/basic-filter.md +++ b/docs/basic-filter.md @@ -124,15 +124,15 @@ const qualityFilter = selectFilter({ > Note, the `selectOptions` can be an array also: ```js const selectOptions = [ - { label: 0, value: 'good' }, - { label: 1, value: 'Bad' }, - { label: 2, value: 'unknown' } + { value: 0, label: 'good' }, + { value: 1, label: 'Bad' }, + { value: 2, label: 'unknown' } ]; const columns = [ ..., { dataField: 'quality', text: 'Product Quailty', - formatter: cell => selectOptions.find(opt => opt.label === cell).value, + formatter: cell => selectOptions.find(opt => opt.value === cell).label, filter: selectFilter({ options: selectOptions }) diff --git a/website/blog/2018-11-10-version-bump.md b/website/blog/2018-11-10-version-bump.md new file mode 100644 index 0000000..7c58689 --- /dev/null +++ b/website/blog/2018-11-10-version-bump.md @@ -0,0 +1,27 @@ +--- +title: New Release (2018-11-10) +author: Allen Fang +authorURL: https://twitter.com/allenfang_tw +--- + +## Changed Packages + +We got following package version bump in this release: + +* `react-bootstrap-table-next@1.4.1` +* `react-bootstrap-table2-filter@1.1.0` +* `react-bootstrap-table2-paginator@1.0.4` +* `react-bootstrap-table2-editor@1.2.2` + + +## Changelog + +### Bug fixes +* Fixed wrong usage of `label` and `value` for the options of select filter. +* Fixed wrong `from` and `to` value when enable `showTotal` for pagination. +* Fixed `condensed` is broken in `bootstrap@4` +* Fixed the error message disappear in `bootstrap@4` + +### Features + +### Enhancements