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) => {