diff --git a/superset-frontend/packages/superset-ui-chart-controls/src/types.ts b/superset-frontend/packages/superset-ui-chart-controls/src/types.ts index 546936ee756..98861b8477e 100644 --- a/superset-frontend/packages/superset-ui-chart-controls/src/types.ts +++ b/superset-frontend/packages/superset-ui-chart-controls/src/types.ts @@ -517,6 +517,7 @@ export type ControlFormItemSpec = { debounceDelay?: number; } & (T extends 'Select' ? { + allowNewOptions?: boolean; options: any; value?: string; defaultValue?: string; diff --git a/superset-frontend/src/explore/components/controls/ColumnConfigControl/constants.tsx b/superset-frontend/src/explore/components/controls/ColumnConfigControl/constants.tsx index 14ceeefde4d..9ed70615004 100644 --- a/superset-frontend/src/explore/components/controls/ColumnConfigControl/constants.tsx +++ b/superset-frontend/src/explore/components/controls/ColumnConfigControl/constants.tsx @@ -42,6 +42,7 @@ export type SharedColumnConfigProp = | 'currencyFormat'; const d3NumberFormat: ControlFormItemSpec<'Select'> = { + allowNewOptions: true, controlType: 'Select', label: t('D3 format'), description: D3_FORMAT_DOCS,