king
2020-10-20 7b01bec1609710729a868093ad69484ebea82d80
src/mob/colorsketch/index.jsx
@@ -19,7 +19,22 @@
    onChange: PropTypes.func
  }
  state = {
    color: this.props.defaultValue || this.props.value,
    color: '',
  }
  UNSAFE_componentWillMount () {
    const { defaultValue, value } = this.props
    let initVal = ''
    if (this.props['data-__meta']) {
      initVal = this.props['data-__meta'].initialValue
    } else if (defaultValue) {
      initVal = defaultValue
    } else if (value) {
      initVal = value
    }
    this.setState({color: initVal})
  }
  handleChange = (color) => {