agregar copia de items mostrados para corregir la cantidad mostrada en select/deselect button
This commit is contained in:
parent
51f67cfbd2
commit
e1b23cb346
@ -88,7 +88,8 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
|
||||
// const showMenu = Object.keys(this.props.attrValues).length < this.props.menuLimit;
|
||||
|
||||
var values = Object.keys(this.props.attrValues);
|
||||
var shown = values.filter(this.matchesFilter.bind(this)).sort(this.props.sorter).slice(0, this.props.menuLimit);
|
||||
var shown = values.filter(this.matchesFilter.bind(this)).sort(this.props.sorter);
|
||||
var truncatedShown = values.filter(this.matchesFilter.bind(this)).sort(this.props.sorter).slice(0, this.props.menuLimit);
|
||||
|
||||
return _react2.default.createElement(
|
||||
_reactDraggable2.default,
|
||||
@ -167,7 +168,7 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
|
||||
_react2.default.createElement(
|
||||
'div',
|
||||
{ className: 'pvtCheckContainer' },
|
||||
shown.map(function (x) {
|
||||
truncatedShown.map(function (x) {
|
||||
return _react2.default.createElement(
|
||||
'p',
|
||||
{
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "v-react-pivottable",
|
||||
"version": "0.11.17",
|
||||
"version": "0.11.18",
|
||||
"description": "A React-based pivot table",
|
||||
"main": "PivotTableUI.js",
|
||||
"files": [
|
||||
|
Loading…
Reference in New Issue
Block a user