opened
morozp
username_0
Hi.
How to change current color  in component PhotoshopPicker . I think it should be changed
when you click ok button, and should be revert after click cancel button.
PhotoshopPicker, current colour
issue
created
okasha93
username_1
We can try ti reset color to initial-color value using function `reset` onCancel 

btw, This Solution works successfully with me ;)
Example:
     ```
  <PhotoshopPicker 
                                color={this.state.numberscolor}  
                                onChange={this.handleColor}
                                onAccept={this.handleColorClose}
                                onCancel={this.handleColorReset}
                                />
```

 ```
handleColor() {
        this.setState({ [value]: color.hex })
        this.state.formValue[value] = color.hex
    }

```
```
handleColorReset(){
        if (value === 'oldmarkercolor'){
            const oldcolor = this.state.oldcolor
        this.setState({color: oldcolor})
        }
          this.handleColorClose()
    }
```
comment