Commit a3bf38cc by Alexander Zobnin Committed by Torkel Ödegaard

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

parent f18de7e6
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment