@@ -73,11 +73,7 @@ function ControlPointButton( { isOpen, position, color, ...additionalProps } ) {
7373 ) ;
7474}
7575
76- function GradientColorPickerDropdown ( {
77- isRenderedInSidebar,
78- gradientPickerDomRef,
79- ...props
80- } ) {
76+ function GradientColorPickerDropdown ( { isRenderedInSidebar, ...props } ) {
8177 const popoverProps = useMemo ( ( ) => {
8278 const result = {
8379 className :
@@ -87,7 +83,7 @@ function GradientColorPickerDropdown( {
8783 result . placement = 'top' ;
8884 }
8985 return result ;
90- } , [ gradientPickerDomRef , isRenderedInSidebar ] ) ;
86+ } , [ isRenderedInSidebar ] ) ;
9187 return (
9288 < CustomColorPickerDropdown
9389 isRenderedInSidebar = { isRenderedInSidebar }
@@ -161,7 +157,6 @@ function ControlPoints( {
161157 return (
162158 ignoreMarkerPosition !== initialPosition && (
163159 < GradientColorPickerDropdown
164- gradientPickerDomRef = { gradientPickerDomRef }
165160 isRenderedInSidebar = { __experimentalIsRenderedInSidebar }
166161 key = { index }
167162 onClose = { onStopControlPointChange }
@@ -286,12 +281,10 @@ function InsertPoint( {
286281 insertPosition,
287282 disableAlpha,
288283 __experimentalIsRenderedInSidebar,
289- gradientPickerDomRef,
290284} ) {
291285 const [ alreadyInsertedPoint , setAlreadyInsertedPoint ] = useState ( false ) ;
292286 return (
293287 < GradientColorPickerDropdown
294- gradientPickerDomRef = { gradientPickerDomRef }
295288 isRenderedInSidebar = { __experimentalIsRenderedInSidebar }
296289 className = "components-custom-gradient-picker__inserter"
297290 onClose = { ( ) => {
0 commit comments