This commit is contained in:
Tom Moor
2023-06-14 09:24:20 +03:00
parent 80a9bae761
commit 7bce4c807d

View File

@@ -27,7 +27,7 @@ const InputColor: React.FC<Props> = ({ value, onChange, ...rest }) => {
<Relative>
<Input
value={value}
onChange={(event) => onChange(event.target.value)}
onChange={(event) => onChange(event.target.value.replace(/^#?/, "#"))}
placeholder="#"
maxLength={7}
{...rest}