@rc-component/trigger
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -496,3 +496,11 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
, | ||
onClick: onPopupClick | ||
onClick: onPopupClick, | ||
onMouseDownCapture: function onMouseDownCapture() { | ||
// Additional check for click to hide | ||
// Since `createPortal` will not included in the popup element | ||
// So we use capture to handle this | ||
if (clickToHide) { | ||
triggerOpen(true); | ||
} | ||
} | ||
// Mask | ||
@@ -499,0 +507,0 @@ , |
@@ -14,2 +14,3 @@ import type { CSSMotionProps } from 'rc-motion'; | ||
onPointerEnter?: React.MouseEventHandler<HTMLDivElement>; | ||
onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement>; | ||
zIndex?: number; | ||
@@ -16,0 +17,0 @@ mask?: boolean; |
@@ -38,2 +38,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
onPointerEnter = props.onPointerEnter, | ||
onMouseDownCapture = props.onMouseDownCapture, | ||
ready = props.ready, | ||
@@ -171,3 +172,4 @@ offsetX = props.offsetX, | ||
onPointerEnter: onPointerEnter, | ||
onClick: onClick | ||
onClick: onClick, | ||
onMouseDownCapture: onMouseDownCapture | ||
}, arrow && /*#__PURE__*/React.createElement(Arrow, { | ||
@@ -174,0 +176,0 @@ prefixCls: prefixCls, |
@@ -504,3 +504,11 @@ "use strict"; | ||
, | ||
onClick: onPopupClick | ||
onClick: onPopupClick, | ||
onMouseDownCapture: function onMouseDownCapture() { | ||
// Additional check for click to hide | ||
// Since `createPortal` will not included in the popup element | ||
// So we use capture to handle this | ||
if (clickToHide) { | ||
triggerOpen(true); | ||
} | ||
} | ||
// Mask | ||
@@ -507,0 +515,0 @@ , |
@@ -14,2 +14,3 @@ import type { CSSMotionProps } from 'rc-motion'; | ||
onPointerEnter?: React.MouseEventHandler<HTMLDivElement>; | ||
onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement>; | ||
zIndex?: number; | ||
@@ -16,0 +17,0 @@ mask?: boolean; |
@@ -46,2 +46,3 @@ "use strict"; | ||
onPointerEnter = props.onPointerEnter, | ||
onMouseDownCapture = props.onMouseDownCapture, | ||
ready = props.ready, | ||
@@ -179,3 +180,4 @@ offsetX = props.offsetX, | ||
onPointerEnter: onPointerEnter, | ||
onClick: onClick | ||
onClick: onClick, | ||
onMouseDownCapture: onMouseDownCapture | ||
}, arrow && /*#__PURE__*/React.createElement(_Arrow.default, { | ||
@@ -182,0 +184,0 @@ prefixCls: prefixCls, |
{ | ||
"name": "@rc-component/trigger", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "base abstract trigger component for react", | ||
@@ -36,3 +36,3 @@ "engines": { | ||
"compile": "father build && lessc assets/index.less assets/index.css", | ||
"prepublishOnly": "npm run compile && np --yolo --no-publish", | ||
"prepublishOnly": "npm run compile ", | ||
"lint": "eslint src/ docs/examples/ --ext .tsx,.ts,.jsx,.js", | ||
@@ -39,0 +39,0 @@ "test": "rc-test", |
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
183948
3990