diff --git a/src/app/[locale]/admin/clubs/[club_id]/tabs/ClubProfileTab.tsx b/src/app/[locale]/admin/clubs/[club_id]/tabs/ClubProfileTab.tsx index e9cf238..42144a3 100644 --- a/src/app/[locale]/admin/clubs/[club_id]/tabs/ClubProfileTab.tsx +++ b/src/app/[locale]/admin/clubs/[club_id]/tabs/ClubProfileTab.tsx @@ -36,13 +36,20 @@ function EditableField({ }: EditableFieldProps) { const hasValue = value && value.trim().length > 0; + function handleBlur() { + // Only close edit mode if field has content + if (value && value.trim().length > 0) { + onToggleEdit(); + } + } + if (isEditing || !hasValue) { return ( onChange(e.target.value)} - onBlur={() => hasValue && onToggleEdit()} + onBlur={handleBlur} autoFocus placeholder={placeholder} maxLength={maxLength}