Skip to content

Commit

Permalink
🔥 [open-formulieren/open-forms#4362] Remove support for defaultValue …
Browse files Browse the repository at this point in the history
…translations

It is unused and too complex with 'multiple: true' cases, causing
crashes in the admin interface.
  • Loading branch information
sergei-maertens committed Jun 13, 2024
1 parent 197f976 commit 5bfcde7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/formio/components/textarea.ts
Original file line number Diff line number Diff line change
@@ -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<string, Validator, TranslatableKeys>;

Expand Down
2 changes: 1 addition & 1 deletion src/formio/components/textfield.ts
Original file line number Diff line number Diff line change
@@ -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<string, Validator, TranslatableKeys>;

Expand Down

0 comments on commit 5bfcde7

Please sign in to comment.