From 7bce4c807dde6c9acd4ca55d0d65238cb7d3c811 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 14 Jun 2023 09:24:20 +0300 Subject: [PATCH] fix #5441 --- app/components/InputColor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/InputColor.tsx b/app/components/InputColor.tsx index 271c60088..2afe75973 100644 --- a/app/components/InputColor.tsx +++ b/app/components/InputColor.tsx @@ -27,7 +27,7 @@ const InputColor: React.FC = ({ value, onChange, ...rest }) => { onChange(event.target.value)} + onChange={(event) => onChange(event.target.value.replace(/^#?/, "#"))} placeholder="#" maxLength={7} {...rest}