rc-select
Advanced tools
Comparing version 14.13.0 to 14.13.1
@@ -102,7 +102,8 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
// ======================= Ref ======================= | ||
var popupRef = React.useRef(null); | ||
var triggerPopupRef = React.useRef(null); | ||
React.useImperativeHandle(ref, function () { | ||
return { | ||
getPopupElement: function getPopupElement() { | ||
return popupRef.current; | ||
var _triggerPopupRef$curr; | ||
return (_triggerPopupRef$curr = triggerPopupRef.current) === null || _triggerPopupRef$curr === void 0 ? void 0 : _triggerPopupRef$curr.popupElement; | ||
} | ||
@@ -119,5 +120,5 @@ }; | ||
popup: /*#__PURE__*/React.createElement("div", { | ||
ref: popupRef, | ||
onMouseEnter: onPopupMouseEnter | ||
}, popupNode), | ||
ref: triggerPopupRef, | ||
stretch: stretch, | ||
@@ -124,0 +125,0 @@ popupAlign: dropdownAlign, |
@@ -112,7 +112,8 @@ "use strict"; | ||
// ======================= Ref ======================= | ||
var popupRef = React.useRef(null); | ||
var triggerPopupRef = React.useRef(null); | ||
React.useImperativeHandle(ref, function () { | ||
return { | ||
getPopupElement: function getPopupElement() { | ||
return popupRef.current; | ||
var _triggerPopupRef$curr; | ||
return (_triggerPopupRef$curr = triggerPopupRef.current) === null || _triggerPopupRef$curr === void 0 ? void 0 : _triggerPopupRef$curr.popupElement; | ||
} | ||
@@ -129,5 +130,5 @@ }; | ||
popup: /*#__PURE__*/React.createElement("div", { | ||
ref: popupRef, | ||
onMouseEnter: onPopupMouseEnter | ||
}, popupNode), | ||
ref: triggerPopupRef, | ||
stretch: stretch, | ||
@@ -134,0 +135,0 @@ popupAlign: dropdownAlign, |
{ | ||
"name": "rc-select", | ||
"version": "14.13.0", | ||
"version": "14.13.1", | ||
"description": "React Select", | ||
@@ -49,3 +49,3 @@ "engines": { | ||
"@babel/runtime": "^7.10.1", | ||
"@rc-component/trigger": "^2.0.0", | ||
"@rc-component/trigger": "^2.1.1", | ||
"classnames": "2.x", | ||
@@ -59,4 +59,3 @@ "rc-motion": "^2.0.1", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^12.1.5", | ||
"@types/enzyme": "^3.10.9", | ||
"@testing-library/react": "^13.0.0", | ||
"@types/jest": "^26.0.24", | ||
@@ -68,5 +67,2 @@ "@types/react": "^18.2.45", | ||
"dumi": "^2.2.13", | ||
"enzyme": "^3.3.0", | ||
"enzyme-adapter-react-16": "^1.15.7", | ||
"enzyme-to-json": "^3.4.0", | ||
"eslint": "^8.55.0", | ||
@@ -83,4 +79,6 @@ "eslint-plugin-jest": "^27.6.0", | ||
"rc-test": "^7.0.9", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
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
337140
22
7352
Updated@rc-component/trigger@^2.1.1