(cherry picked from commit a3bf38cc21)
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user