agregar console.log to debug this props error select all
This commit is contained in:
parent
d73fd6c6fd
commit
c1701c1143
@ -145,9 +145,6 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
|
||||
role: 'button',
|
||||
className: 'pvtButton',
|
||||
onClick: function onClick() {
|
||||
console.log('this.props.name ', _this2.props.name);
|
||||
console.log('this.props.attrValues ', _this2.props.attrValues);
|
||||
console.log('Object.keys(this.props.attrValues) ', Object.keys(_this2.props.attrValues));
|
||||
_this2.props.removeValuesFromFilter(_this2.props.name, Object.keys(_this2.props.attrValues).filter(_this2.matchesFilter.bind(_this2)));
|
||||
}
|
||||
},
|
||||
@ -413,6 +410,7 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
}, {
|
||||
key: 'sendPropUpdate',
|
||||
value: function sendPropUpdate(command) {
|
||||
console.log(' sendPropUpdate this.props ', this.props);
|
||||
this.props.onChange((0, _immutabilityHelper2.default)(this.props, command));
|
||||
}
|
||||
}, {
|
||||
@ -453,6 +451,7 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
}, {
|
||||
key: 'removeValuesFromFilter',
|
||||
value: function removeValuesFromFilter(attribute, values) {
|
||||
console.log(' removeValuesFromFilter this.props ', this.props);
|
||||
this.sendPropUpdate({
|
||||
valueFilter: _defineProperty({}, attribute, { $unset: values })
|
||||
});
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "v-react-pivottable",
|
||||
"version": "0.11.19",
|
||||
"version": "0.11.20",
|
||||
"description": "A React-based pivot table",
|
||||
"main": "PivotTableUI.js",
|
||||
"files": [
|
||||
|
Loading…
Reference in New Issue
Block a user