[common mobile] Fixed init transparent color into CustomColorPicker component
This commit is contained in:
parent
0c74ef648a
commit
d089a266b0
|
@ -139,6 +139,9 @@ const CustomColorPicker = props => {
|
||||||
if (props.autoColor) {
|
if (props.autoColor) {
|
||||||
currentColor = rgb2hex(props.autoColor);
|
currentColor = rgb2hex(props.autoColor);
|
||||||
}
|
}
|
||||||
|
if (currentColor === 'transparent') {
|
||||||
|
currentColor = 'ffffff';
|
||||||
|
}
|
||||||
const countDynamicColors = props.countdynamiccolors || 10;
|
const countDynamicColors = props.countdynamiccolors || 10;
|
||||||
const [stateColor, setColor] = useState(`#${currentColor}`);
|
const [stateColor, setColor] = useState(`#${currentColor}`);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in a new issue