mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
f18de7e6a0
commit
a3bf38cc21
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user