@rc-component/trigger
Advanced tools
Comparing version 2.2.5 to 2.2.6
@@ -1,2 +0,2 @@ | ||
import { fillRef, supportRef, useComposeRef } from "rc-util/es/ref"; | ||
import { fillRef, getNodeRef, supportRef, useComposeRef } from "rc-util/es/ref"; | ||
import * as React from 'react'; | ||
@@ -12,3 +12,3 @@ var TriggerWrapper = /*#__PURE__*/React.forwardRef(function (props, ref) { | ||
}, [getTriggerDOMNode]); | ||
var mergedRef = useComposeRef(setRef, children.ref); | ||
var mergedRef = useComposeRef(setRef, getNodeRef(children)); | ||
return canUseRef ? /*#__PURE__*/React.cloneElement(children, { | ||
@@ -15,0 +15,0 @@ ref: mergedRef |
@@ -19,3 +19,3 @@ "use strict"; | ||
}, [getTriggerDOMNode]); | ||
var mergedRef = (0, _ref.useComposeRef)(setRef, children.ref); | ||
var mergedRef = (0, _ref.useComposeRef)(setRef, (0, _ref.getNodeRef)(children)); | ||
return canUseRef ? /*#__PURE__*/React.cloneElement(children, { | ||
@@ -22,0 +22,0 @@ ref: mergedRef |
{ | ||
"name": "@rc-component/trigger", | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"description": "base abstract trigger component for react", | ||
@@ -72,3 +72,3 @@ "engines": { | ||
"rc-resize-observer": "^1.3.1", | ||
"rc-util": "^5.38.0" | ||
"rc-util": "^5.44.0" | ||
}, | ||
@@ -75,0 +75,0 @@ "peerDependencies": { |
184457
Updatedrc-util@^5.44.0