react-infinity-menu
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -73,3 +73,3 @@ "use strict"; | ||
var currLevel = Math.floor(keyPath.split(".").length / 2); | ||
this.props.onNodeMouseClick(event, tree, node, currLevel); | ||
this.props.onNodeMouseClick(event, tree, node, currLevel, keyPath); | ||
} | ||
@@ -191,2 +191,3 @@ } | ||
var itemKey = "infinity-menu-leaf-" + curr.id; | ||
curr.keyPath = keyPath; | ||
if (curr.customComponent) { | ||
@@ -193,0 +194,0 @@ var componentProps = { |
{ | ||
"name": "react-infinity-menu", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "[![Circle CI](https://circleci.com/gh/socialtables/react-infinity-menu.svg?style=svg&circle-token=230aaa396d006f1dc8d875b340834234c4937bbc)](https://circleci.com/gh/socialtables/react-infinity-menu)", | ||
@@ -5,0 +5,0 @@ "main": "./dist/infinity-menu.js", |
@@ -36,3 +36,3 @@ import React from "react"; | ||
const currLevel = Math.floor(keyPath.split(".").length / 2); | ||
this.props.onNodeMouseClick(event, tree, node, currLevel); | ||
this.props.onNodeMouseClick(event, tree, node, currLevel, keyPath); | ||
} | ||
@@ -140,2 +140,3 @@ } | ||
const itemKey = "infinity-menu-leaf-" + curr.id; | ||
curr.keyPath = keyPath; | ||
if (curr.customComponent) { | ||
@@ -142,0 +143,0 @@ const componentProps = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
374999
1137