king
2022-08-02 8d66ff34fae5b048a6b7923cc75d34f13a08be9d
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)
    })
  }