src/mob/colorsketch/index.jsx
@@ -61,9 +61,10 @@ handleChange = (color) => { let _color = `rgba(${ color.rgb.r }, ${ color.rgb.g }, ${ color.rgb.b }, ${ color.rgb.a })` let _hex = color.hex === 'transparent' ? '#ffffff' : color.hex this.setState({ color: _color }, () => { this.props.onChange && this.props.onChange(_color) this.props.onChange && this.props.onChange(_color, _hex) }) }