react-table-hoc-fixed-columns
Advanced tools
Comparing version 2.3.3 to 2.3.4
@@ -56,3 +56,3 @@ "use strict"; | ||
_this.onScrollX = function (event) { | ||
if (event.nativeEvent.target.getAttribute('class').indexOf('rt-table') === -1) return; | ||
if (event.currentTarget !== event.target) return; | ||
@@ -116,5 +116,5 @@ _this.calculatePos(event.nativeEvent.target); | ||
_this.getProps = function () { | ||
var getProps = _this.props.getProps; | ||
return _objectSpread({}, getProps && getProps.apply(void 0, arguments), { | ||
_this.getTableProps = function () { | ||
var getTableProps = _this.props.getTableProps; | ||
return _objectSpread({}, getTableProps && getTableProps.apply(void 0, arguments), { | ||
onScroll: _this.onScrollX | ||
@@ -189,3 +189,3 @@ }); | ||
columns: this.getColumns(columns, this.props.column), | ||
getProps: this.getProps | ||
getTableProps: this.getTableProps | ||
}, this.onChangePropertyList)); | ||
@@ -200,3 +200,3 @@ } | ||
columns: _propTypes.default.array.isRequired, | ||
getProps: _propTypes.default.func, | ||
getTableProps: _propTypes.default.func, | ||
innerRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]), | ||
@@ -208,3 +208,3 @@ className: _propTypes.default.string, | ||
ReactTableFixedColumns.defaultProps = { | ||
getProps: null, | ||
getTableProps: null, | ||
innerRef: null, | ||
@@ -211,0 +211,0 @@ className: null, |
{ | ||
"name": "react-table-hoc-fixed-columns", | ||
"version": "2.3.3", | ||
"version": "2.3.4", | ||
"description": "ReactTable HOC for fixed columns", | ||
@@ -25,4 +25,4 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"react": "^15.3.0 || ^16.2.0", | ||
"react-dom": "^15.3.0 || ^16.2.0" | ||
"react": "^15.3.0 || ^16.2.0 || ^17.0.0", | ||
"react-dom": "^15.3.0 || ^16.2.0 || ^17.0.0" | ||
}, | ||
@@ -46,4 +46,5 @@ "devDependencies": { | ||
"html-webpack-plugin": "^3.2.0", | ||
"react": "^16.12.0", | ||
"react-dom": "^16.12.0", | ||
"prop-types": "^15.7.2", | ||
"react": "^17.0.0", | ||
"react-dom": "^17.0.0", | ||
"react-table": "^6.11.4", | ||
@@ -50,0 +51,0 @@ "style-loader": "^0.19.1", |
40848
24