diff --git a/.changeset/moody-apricots-hear.md b/.changeset/moody-apricots-hear.md new file mode 100644 index 00000000000..1f290bd0b41 --- /dev/null +++ b/.changeset/moody-apricots-hear.md @@ -0,0 +1,5 @@ +--- +'@keystone-next/fields': major +--- + +Fixed the `select` field type to always use the correct underlying types. diff --git a/packages-next/fields/src/types/select/index.ts b/packages-next/fields/src/types/select/index.ts index d9cb6bf5ceb..bfa57ac3ef4 100644 --- a/packages-next/fields/src/types/select/index.ts +++ b/packages-next/fields/src/types/select/index.ts @@ -1,5 +1,5 @@ // @ts-ignore -import { Text } from '@keystone-next/fields-legacy'; +import { Select } from '@keystone-next/fields-legacy'; import type { FieldType, BaseGeneratedListTypes, FieldDefaultValue } from '@keystone-next/types'; import { resolveView } from '../../resolve-view'; import type { FieldConfig } from '../../interfaces'; @@ -30,7 +30,7 @@ export type SelectFieldConfig< export const select = ( config: SelectFieldConfig ): FieldType => ({ - type: Text, + type: Select, config, views: resolveView('select/views'), getAdminMeta: () => ({