react-popper-tooltip
Advanced tools
Comparing version 2.7.3-alpha.1 to 2.7.3-alpha.2
@@ -54,2 +54,4 @@ 'use strict'; | ||
_this._handleOutsideClick = function (e) { | ||
e.stopPropagation(); | ||
if (!reactDom.findDOMNode(_assertThisInitialized(_assertThisInitialized(_this))).contains(e.target)) { | ||
@@ -79,9 +81,9 @@ var _this$props = _this.props, | ||
_this._addOutsideClickHandler = function () { | ||
document.addEventListener('touchend', _this._handleOutsideClick); | ||
document.addEventListener('click', _this._handleOutsideClick); | ||
document.addEventListener('touchend', _this._handleOutsideClick); | ||
}; | ||
_this._removeOutsideClickHandler = function () { | ||
document.removeEventListener('touchend', _this._handleOutsideClick); | ||
document.removeEventListener('click', _this._handleOutsideClick); | ||
document.removeEventListener('touchend', _this._handleOutsideClick); | ||
}; | ||
@@ -88,0 +90,0 @@ |
@@ -52,2 +52,4 @@ import _extends from '@babel/runtime/helpers/esm/extends'; | ||
_this._handleOutsideClick = function (e) { | ||
e.stopPropagation(); | ||
if (!findDOMNode(_assertThisInitialized(_assertThisInitialized(_this))).contains(e.target)) { | ||
@@ -77,9 +79,9 @@ var _this$props = _this.props, | ||
_this._addOutsideClickHandler = function () { | ||
document.addEventListener('touchend', _this._handleOutsideClick); | ||
document.addEventListener('click', _this._handleOutsideClick); | ||
document.addEventListener('touchend', _this._handleOutsideClick); | ||
}; | ||
_this._removeOutsideClickHandler = function () { | ||
document.removeEventListener('touchend', _this._handleOutsideClick); | ||
document.removeEventListener('click', _this._handleOutsideClick); | ||
document.removeEventListener('touchend', _this._handleOutsideClick); | ||
}; | ||
@@ -86,0 +88,0 @@ |
{ | ||
"name": "react-popper-tooltip", | ||
"version": "2.7.3-alpha.1", | ||
"version": "2.7.3-alpha.2", | ||
"description": "React tooltip library built around react-popper", | ||
@@ -5,0 +5,0 @@ "homepage": "https://mohsinulhaq.github.io/react-popper-tooltip/", |
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
48842
956