react-best-gradient-color-picker
Advanced tools
Comparing version 1.4.8 to 1.4.9
@@ -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 ( |
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
69099
2035