colorpicker: fix color string change #9769 (#9780)

(cherry picked from commit a3bf38cc21)
This commit is contained in:
Alexander Zobnin
2017-11-03 13:31:39 +01:00
committed by Torkel Ödegaard
parent cac8b976d9
commit 981f4f230c
@@ -56,10 +56,11 @@ export class ColorPickerPopover extends React.Component<IProps, any> {
let newColor = tinycolor(colorString);
if (newColor.isValid()) {
// Update only color state
let newColorString = newColor.toString();
this.setState({
color: newColor.toString(),
color: newColorString,
});
this.props.onColorSelect(newColor);
this.props.onColorSelect(newColorString);
}
}