Closed farshidinanloo closed 4 years ago
I find out the solution :
in ColorPickerForm replace this code
updateCurrentColor(newColor) { this.setState({ currentColor: newColor.hex }); }
with this
updateCurrentColor(newColor) {
const r = newColor.rgb.r;
const g = newColor.rgb.g;
const b = newColor.rgb.b;
const a = newColor.rgb.a;
const rgbaColor = `rgba(${r},${g},${b},${a})`;
this.setState({ currentColor: rgbaColor });
}
we can't use opacity for rgba in color picker when it changes it moves back to the first place