diff --git a/apps/app/components/labels/create-label-modal.tsx b/apps/app/components/labels/create-label-modal.tsx index 94757fd24..e07de48f5 100644 --- a/apps/app/components/labels/create-label-modal.tsx +++ b/apps/app/components/labels/create-label-modal.tsx @@ -106,14 +106,13 @@ export const CreateLabelModal: React.FC = ({ isOpen, projectId, handleClo
- {({ open }) => ( + {({ open, close }) => ( <> - Color {watch("color") && watch("color") !== "" && ( = ({ isOpen, projectId, handleClo render={({ field: { value, onChange } }) => ( onChange(value.hex)} + onChange={(value) => { + onChange(value.hex); + close(); + }} /> )} />