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

rc-tree

Package Overview
Dependencies
Maintainers
2
Versions
308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tree - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

assets/demo-basic.css

5

HISTORY.md
# History
---
## 1.1.0 / 2016-01-25
- change `onDrop` params (from `originExpandedKeys` to `rawExpandedKeys`)
## 1.0.x / 2016-01-15
- change onSelect/onCheck params
- change `onSelect`/`onCheck` params

@@ -7,0 +10,0 @@ ## 0.26.x / 2016-01-13

16

lib/Tree.js

@@ -90,3 +90,3 @@ 'use strict';

// Controlled expand, save and then reset
this.getOriginExpandedKeys();
this.getRawExpandedKeys();
st.expandedKeys = expandedKeys;

@@ -134,3 +134,3 @@ }

if (expandedKeys) {
this.getOriginExpandedKeys();
this.getRawExpandedKeys();
st.expandedKeys = expandedKeys;

@@ -182,3 +182,3 @@ }

if ('expandedKeys' in this.props) {
res.originExpandedKeys = [].concat(_toConsumableArray(this._originExpandedKeys)) || [].concat(_toConsumableArray(this.state.expandedKeys));
res.rawExpandedKeys = [].concat(_toConsumableArray(this._rawExpandedKeys)) || [].concat(_toConsumableArray(this.state.expandedKeys));
}

@@ -389,6 +389,6 @@ this.props.onDrop(res);

}, {
key: 'getOriginExpandedKeys',
value: function getOriginExpandedKeys() {
if (!this._originExpandedKeys && 'expandedKeys' in this.props) {
this._originExpandedKeys = [].concat(_toConsumableArray(this.state.expandedKeys));
key: 'getRawExpandedKeys',
value: function getRawExpandedKeys() {
if (!this._rawExpandedKeys && 'expandedKeys' in this.props) {
this._rawExpandedKeys = [].concat(_toConsumableArray(this.state.expandedKeys));
}

@@ -497,3 +497,3 @@ }

}
// console.log(this.state.expandedKeys, this._originExpandedKeys, props.children);
// console.log(this.state.expandedKeys, this._rawExpandedKeys, props.children);
var checkKeys = (0, _util.getTreeNodesStates)(props.children, this.state.checkedKeys, true);

@@ -500,0 +500,0 @@ this.checkPartKeys = checkKeys.checkPartKeys;

{
"name": "rc-tree",
"version": "1.0.2",
"version": "1.1.0",
"description": "tree ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

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