diff --git a/src/components/common/Colors/ColorPicker.js b/src/components/common/Colors/ColorPicker.js
index daf91ae..5be027f 100644
--- a/src/components/common/Colors/ColorPicker.js
+++ b/src/components/common/Colors/ColorPicker.js
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import _ from 'lodash';
-import Popover from 'react-tiny-popover';
+import { Popover } from 'react-tiny-popover';
import Icon from 'components/common/Icon/Icon';
import ColorList from './ColorList';
@@ -84,7 +84,7 @@ const ColorPickerWrapper = ({
onColorSelect(hexColor);
};
- const iconToggle = (
+ const IconToggle = React.forwardRef(() => (
- );
+ ));
- const buttonToggle = (
+ const ButtonToggle = React.forwardRef(() => (
- );
-
+ ));
return (
<>
{
- toggleVisible(!visible);
+ toggleVisible(true);
}}
containerStyle={{ zIndex: 100, boxShadow: 'black 3px 3px 1px' }}
transitionDuration={0.001}
@@ -129,8 +128,7 @@ const ColorPickerWrapper = ({
);
}}
>
- {type === 'icon' && iconToggle}
- {type === 'button' && buttonToggle}
+ {type === 'icon' ? : }
>
);