Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-table

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-table - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

1

lib/DataManager.js

@@ -53,2 +53,3 @@ 'use strict';

_this.data = data || [];
_this.showData();
_this._cached = {};

@@ -55,0 +56,0 @@ };

18

lib/Table.js

@@ -85,4 +85,4 @@ 'use strict';

var Table = function (_React$Component) {
_inherits(Table, _React$Component);
var Table = function (_React$PureComponent) {
_inherits(Table, _React$PureComponent);

@@ -242,3 +242,3 @@ function Table(props) {

showData: showData,
bodHeight: _this.dataManager._bodyHeight
bodyHeight: _this.dataManager._bodyHeight
};

@@ -440,7 +440,2 @@ };

}, {
key: 'shouldComponentUpdate',
value: function shouldComponentUpdate() {
return false;
}
}, {
key: 'setScrollPosition',

@@ -484,3 +479,4 @@ value: function setScrollPosition(position) {

style = _props.style,
prefixCls = _props.prefixCls;
prefixCls = _props.prefixCls,
useScrollY = _props.useScrollY;

@@ -501,3 +497,3 @@ var hasLeftFixed = this.columnManager.isAnyColumnsLeftFixed();

var fullHeight = _this2.fullSize();
if (fullHeight < height) {
if (fullHeight < height || !useScrollY) {
height = fullHeight;

@@ -530,3 +526,3 @@ }

return Table;
}(_react2.default.Component);
}(_react2.default.PureComponent);

@@ -533,0 +529,0 @@ Table.defaultProps = _types.TableDefaultParams;

@@ -25,2 +25,3 @@ 'use strict';

expandedRowByClick: true,
useScrollY: true,

@@ -27,0 +28,0 @@ rowRef: function rowRef() {

{
"name": "fast-table",
"version": "1.2.1",
"version": "1.2.2",
"description": "react table fast",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc