react-tooltip
Advanced tools
Comparing version 0.9.5 to 0.9.6
@@ -314,6 +314,6 @@ 'use strict'; | ||
var delayTime = show ? 0 : parseInt(delayShow, 10); | ||
var eventTarget = e.currentTarget; | ||
this.delayShowLoop = setTimeout(function () { | ||
if (_this2.trim(_this2.state.placeholder).length > 0) { | ||
if (_this2.state.effect === 'float') { | ||
// const offsetY = e.clientY | ||
_this2.setState({ | ||
@@ -325,3 +325,3 @@ show: true, | ||
} else if (_this2.state.effect === 'solid') { | ||
var _getPosition2 = _this2.getPosition(e.currentTarget); | ||
var _getPosition2 = _this2.getPosition(eventTarget); | ||
@@ -350,2 +350,3 @@ var x = _getPosition2.x; | ||
clearTimeout(this.delayShowLoop); | ||
setTimeout(function () { | ||
@@ -365,3 +366,3 @@ _this3.setState({ | ||
ReactTooltip.prototype.addScrollListener = function addScrollListener() { | ||
window.addEventListener("scroll", this.hideTooltip); | ||
window.addEventListener('scroll', this.hideTooltip); | ||
}; | ||
@@ -372,3 +373,3 @@ | ||
ReactTooltip.prototype.removeScrollListener = function removeScrollListener() { | ||
window.removeEventListener("scroll", this.hideTooltip); | ||
window.removeEventListener('scroll', this.hideTooltip); | ||
}; | ||
@@ -375,0 +376,0 @@ |
{ | ||
"name": "react-tooltip", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"description": "react tooltip component", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-tooltip.js", |
@@ -250,6 +250,6 @@ 'use strict' | ||
const delayTime = show ? 0 : parseInt(delayShow, 10) | ||
const eventTarget = e.currentTarget | ||
this.delayShowLoop = setTimeout(() => { | ||
if (this.trim(this.state.placeholder).length > 0) { | ||
if (this.state.effect === 'float') { | ||
// const offsetY = e.clientY | ||
this.setState({ | ||
@@ -261,3 +261,3 @@ show: true, | ||
} else if (this.state.effect === 'solid') { | ||
let {x, y} = this.getPosition(e.currentTarget) | ||
let {x, y} = this.getPosition(eventTarget) | ||
this.setState({ | ||
@@ -278,2 +278,3 @@ show: true, | ||
const {delayHide} = this.state | ||
clearTimeout(this.delayShowLoop) | ||
setTimeout(() => { | ||
@@ -292,3 +293,3 @@ this.setState({ | ||
addScrollListener () { | ||
window.addEventListener("scroll", this.hideTooltip); | ||
window.addEventListener('scroll', this.hideTooltip) | ||
} | ||
@@ -298,3 +299,3 @@ | ||
removeScrollListener () { | ||
window.removeEventListener("scroll", this.hideTooltip); | ||
window.removeEventListener('scroll', this.hideTooltip) | ||
} | ||
@@ -301,0 +302,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
0
0
73852
12
994