From 644685a5a8a016b813b3add36de026f5ead5c4c9 Mon Sep 17 00:00:00 2001 From: Sudharsan Aravind <63002244+vsaravind01@users.noreply.github.com> Date: Fri, 2 Jun 2023 02:47:22 +0530 Subject: [PATCH] fix: color picker input closing problem (#6599) --- src/components/ColorPicker/ColorPicker.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ColorPicker/ColorPicker.tsx b/src/components/ColorPicker/ColorPicker.tsx index 25ac7c1a..c470cc08 100644 --- a/src/components/ColorPicker/ColorPicker.tsx +++ b/src/components/ColorPicker/ColorPicker.tsx @@ -66,7 +66,6 @@ const ColorPickerPopupContent = ({ | "color" | "onChange" | "label" - | "label" | "elements" | "palette" | "updateData" @@ -100,6 +99,8 @@ const ColorPickerPopupContent = ({ container.focus(); } + updateData({ openPopup: null }); + e.preventDefault(); e.stopPropagation();