wip form
This commit is contained in:
@@ -115,7 +115,7 @@ export const KelvinColorPicker: React.FC<KelvinColorPickerProps> = ({label, kelv
|
||||
});
|
||||
|
||||
colorPicker.on("input:end", (color: iro.Color) => {
|
||||
onChange(color.kelvin);
|
||||
onChange(Math.floor(color.kelvin));
|
||||
});
|
||||
|
||||
return () => {
|
||||
@@ -130,7 +130,7 @@ export const KelvinColorPicker: React.FC<KelvinColorPickerProps> = ({label, kelv
|
||||
|
||||
return (
|
||||
<FormLine label={label || "KV-farge"}>
|
||||
<div id={myId} style={{margin: "0 auto"}}/>
|
||||
<div title={`${kelvin}K`} id={myId} style={{margin: "0 auto"}}/>
|
||||
</FormLine>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user