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

react-best-gradient-color-picker

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-best-gradient-color-picker - npm Package Compare versions

Comparing version 1.4.8 to 1.4.9

4

lib/index.js

@@ -23,2 +23,4 @@ import React, { useRef, useState, useEffect } from "react";

const boundingRect = contRef?.current?.getBoundingClientRect();
const left = boundingRect?.x;
const top = boundingRect?.y;
useEffect(() => {

@@ -29,3 +31,3 @@ if (!passedBounds) {

}
}, [boundingRect, x, y]);
}, [left, top, x, y]);
return /*#__PURE__*/React.createElement("div", {

@@ -32,0 +34,0 @@ ref: contRef

{
"name": "react-best-gradient-color-picker",
"version": "1.4.8",
"version": "1.4.9",
"description": "An easy to use color/gradient picker for React.js",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -13,2 +13,4 @@ import React, { useRef, useState, useEffect } from "react"

const boundingRect = contRef?.current?.getBoundingClientRect();
const left = boundingRect?.x;
const top = boundingRect?.y;

@@ -20,3 +22,3 @@ useEffect(() => {

}
}, [boundingRect, x, y])
}, [left, top, x, y])

@@ -23,0 +25,0 @@ return (

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