rc-trigger
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -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 @@ } |
{ | ||
"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": [ |
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
38622
879