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

rc-trigger

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-trigger - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

12

lib/Trigger.js

@@ -175,3 +175,8 @@ 'use strict';

},
onMouseLeave: function onMouseLeave() {
onMouseLeave: function onMouseLeave(e) {
// https://github.com/react-component/trigger/pull/13
// react bug?
if (e.relatedTarget && !e.relatedTarget.setTimeout && _rcUtil.Dom.contains(this.popupContainer, e.relatedTarget)) {
return;
}
this.delaySetPopupVisible(false, this.props.mouseLeaveDelay);

@@ -275,5 +280,8 @@ },

var state = this.state;
var mouseProps = {};
if (props.action.indexOf('hover') !== -1) {
if (this.isMouseEnterToShow()) {
mouseProps.onMouseEnter = this.onMouseEnter;
}
if (this.isMouseLeaveToHide()) {
mouseProps.onMouseLeave = this.onMouseLeave;

@@ -280,0 +288,0 @@ }

8

package.json
{
"name": "rc-trigger",
"version": "1.4.2",
"version": "1.4.3",
"description": "base abstract trigger component for react",

@@ -48,5 +48,5 @@ "keywords": [

"rc-tools": "5.x",
"react": "^0.14.0",
"react-addons-test-utils": "^0.14.0",
"react-dom": "^0.14.0"
"react": "15.x",
"react-addons-test-utils": "15.x",
"react-dom": "15.x"
},

@@ -53,0 +53,0 @@ "pre-commit": [

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