feat: add custom value support for s3 region (#15968)

### What problem does this PR solve?
Allow S3-compatible data source region fields to accept custom values
while preserving search-and-select behavior.

### Type of change
- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
buua436
2026-06-15 11:40:28 +08:00
committed by GitHub
parent eb6ea284a8
commit 400dfd50d8
3 changed files with 35 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ export const S3Constant = (t: TFunction) => [
type: FormFieldType.Select,
required: false,
options: awsRegionOptions,
allowCustomValue: true,
customValidate: (val: string, formValues: any) => {
const credentials = formValues?.config?.credentials || {};
const bucketType = formValues?.config?.bucket_type || 's3';