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

rc-tree-select

Package Overview
Dependencies
Maintainers
2
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tree-select - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

18

lib/Select.js

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

if (this.props.treeCheckable) {
value = (0, _util.getTreeNodesStates)(this.props.children, value).checkedValues;
value = (0, _util.getTreeNodesStates)(this.renderTreeData() || this.props.children, value).checkedValues;
}

@@ -140,3 +140,3 @@ var label = this.getLabelFromProps(props, value, 1);

if (nextProps.treeCheckable) {
value = (0, _util.getTreeNodesStates)(nextProps.children, value).checkedValues;
value = (0, _util.getTreeNodesStates)(this.renderTreeData() || nextProps.children, value).checkedValues;
}

@@ -242,7 +242,7 @@ var label = this.getLabelFromProps(nextProps, value);

if (state.open) {
var menu = this.refs.trigger.getInnerMenu();
if (menu && menu.onKeyDown(event)) {
event.preventDefault();
event.stopPropagation();
}
// const menu = this.refs.trigger.getPopupEleRefs();
// if (menu && menu.onKeyDown(event)) {
// event.preventDefault();
// event.stopPropagation();
// }
}

@@ -444,4 +444,4 @@ },

getPopupMenuComponent: function getPopupMenuComponent() {
return this.refs.trigger.getInnerMenu();
getPopupComponentRefs: function getPopupComponentRefs() {
return this.refs.trigger.getPopupEleRefs();
},

@@ -448,0 +448,0 @@

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

getInnerMenu: function getInnerMenu() {
return this.popupMenu && this.popupMenu.refs.menu;
getPopupEleRefs: function getPopupEleRefs() {
return this.popupEle && this.popupEle.refs;
},

@@ -121,4 +121,4 @@

savePopupElement: function savePopupElement(menu) {
this.popupMenu = menu;
savePopupElement: function savePopupElement(ele) {
this.popupEle = ele;
},

@@ -125,0 +125,0 @@

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

@@ -42,2 +42,3 @@ "keywords": [

"expect.js": "0.3.x",
"jquery": "^2.2.0",
"pre-commit": "1.x",

@@ -44,0 +45,0 @@ "rc-form": "^0.7.3",

@@ -107,3 +107,3 @@ # rc-tree-select

|treeNodeFilterProp | which prop value of treeNode will be used for filter if filterTreeNode return true | String | 'value' |
|treeNodeLabelProp | which prop value of treeNode will render as content of select | String | 'value' |
|treeNodeLabelProp | which prop value of treeNode will render as content of select | String | 'title' |
|treeData | treeNodes Array, if set and you need not to construct children TreeNode. (if value is not unique of the whole array, you must provide `key` as unique id) | array<{value, label, children}> | [] |

@@ -110,0 +110,0 @@ |loadData | load data asynchronously | function(node) | - |

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