New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-tooltip

Package Overview
Dependencies
Maintainers
1
Versions
347
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tooltip - npm Package Compare versions

Comparing version 0.9.5 to 0.9.6

9

dist/react-tooltip.js

@@ -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 @@

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