Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rc-component/trigger

Package Overview
Dependencies
Maintainers
0
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rc-component/trigger - npm Package Compare versions

Comparing version 2.2.5 to 2.2.6

4

es/TriggerWrapper.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc