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

This commit is contained in:
Alexander Zobnin 2017-11-03 15:29:00 +03:00 committed by Torkel Ödegaard
parent f18de7e6a0
commit a3bf38cc21

View File

@ -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);
}
}