Socket
Socket
Sign inDemoInstall

rc-tree

Package Overview
Dependencies
Maintainers
2
Versions
306
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 0.20.1 to 0.20.2

12

lib/TreeNode.js

@@ -59,3 +59,4 @@ 'use strict';

this.state = {
dataLoading: false
dataLoading: false,
dragNodeHighlight: false
};

@@ -106,3 +107,5 @@ }

e.stopPropagation();
this.props.root.handleSelect(this);
this.setState({
dragNodeHighlight: true
});
this.props.root.handleDragStart(e, this);

@@ -139,2 +142,5 @@ }

e.stopPropagation();
this.setState({
dragNodeHighlight: false
});
this.props.root.handleDrop(e, this);

@@ -302,3 +308,3 @@ }

if (!props.disabled) {
if (props.selected) {
if (props.selected || _this3.state.dragNodeHighlight) {
domProps.className = prefixCls + '-node-selected';

@@ -305,0 +311,0 @@ }

{
"name": "rc-tree",
"version": "0.20.1",
"version": "0.20.2",
"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