Browse Source

fix: color picker input closing problem (#6599)

Sudharsan Aravind 2 năm trước cách đây
mục cha
commit
644685a5a8

+ 2 - 1
src/components/ColorPicker/ColorPicker.tsx

@@ -66,7 +66,6 @@ const ColorPickerPopupContent = ({
   | "color"
   | "color"
   | "onChange"
   | "onChange"
   | "label"
   | "label"
-  | "label"
   | "elements"
   | "elements"
   | "palette"
   | "palette"
   | "updateData"
   | "updateData"
@@ -100,6 +99,8 @@ const ColorPickerPopupContent = ({
             container.focus();
             container.focus();
           }
           }
 
 
+          updateData({ openPopup: null });
+
           e.preventDefault();
           e.preventDefault();
           e.stopPropagation();
           e.stopPropagation();