From 5bfcde7397b17b21f098ecec5f3a33af711bf5e8 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Thu, 13 Jun 2024 13:36:45 +0200 Subject: [PATCH] :fire: [open-formulieren/open-forms#4362] Remove support for defaultValue translations It is unused and too complex with 'multiple: true' cases, causing crashes in the admin interface. --- src/formio/components/textarea.ts | 2 +- src/formio/components/textfield.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formio/components/textarea.ts b/src/formio/components/textarea.ts index 3c795e9..4cab191 100644 --- a/src/formio/components/textarea.ts +++ b/src/formio/components/textarea.ts @@ -1,7 +1,7 @@ import {InputComponentSchema, MultipleCapable} from '..'; type Validator = 'required' | 'maxLength' | 'pattern'; -type TranslatableKeys = 'label' | 'description' | 'tooltip' | 'defaultValue' | 'placeholder'; +type TranslatableKeys = 'label' | 'description' | 'tooltip' | 'placeholder'; export type TextareaInputSchema = InputComponentSchema; diff --git a/src/formio/components/textfield.ts b/src/formio/components/textfield.ts index 3af21bc..e27600e 100644 --- a/src/formio/components/textfield.ts +++ b/src/formio/components/textfield.ts @@ -1,7 +1,7 @@ import {InputComponentSchema, MultipleCapable, PrefillConfig} from '..'; type Validator = 'required' | 'maxLength' | 'pattern'; -type TranslatableKeys = 'label' | 'description' | 'tooltip' | 'defaultValue' | 'placeholder'; +type TranslatableKeys = 'label' | 'description' | 'tooltip' | 'placeholder'; export type TextFieldInputSchema = InputComponentSchema;