From 5106c9a86ac29a517c7db41e0c0ed0fc3ff797ba Mon Sep 17 00:00:00 2001 From: Kostiantyn Miakshyn Date: Thu, 11 Jun 2026 00:11:11 +0200 Subject: [PATCH 1/2] fix: Fix unit selection in file type Signed-off-by: Kostiantyn Miakshyn --- src/components/Questions/QuestionFile.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Questions/QuestionFile.vue b/src/components/Questions/QuestionFile.vue index 61fa31ff4..f9136d4dc 100644 --- a/src/components/Questions/QuestionFile.vue +++ b/src/components/Questions/QuestionFile.vue @@ -75,7 +75,8 @@ :options="availableUnits" required :clearable="false" - @input="onMaxFileSizeUnitInput($event)" /> + :searchable="false" + @update:modelValue="onMaxFileSizeUnitInput($event)" /> From d0fc2d1694526586f135cd03018e9f4311caf954 Mon Sep 17 00:00:00 2001 From: Kostiantyn Miakshyn Date: Thu, 11 Jun 2026 17:09:54 +0200 Subject: [PATCH 2/2] fix: Fix unit selection in file type (code review fixes) Signed-off-by: Kostiantyn Miakshyn --- src/components/Questions/Question.vue | 6 +++--- src/components/Questions/QuestionFile.vue | 13 +++++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/components/Questions/Question.vue b/src/components/Questions/Question.vue index 1b65f7dde..fd9a8147c 100644 --- a/src/components/Questions/Question.vue +++ b/src/components/Questions/Question.vue @@ -102,7 +102,7 @@ :labelOutside="false" :showTrailingButton="false" :modelValue="name" - @input="onNameChange"> + @update:modelValue="onNameChange"> @@ -374,8 +374,8 @@ export default { this.$emit('update:description', target.value) }, - onNameChange({ target }) { - this.$emit('update:name', target.value) + onNameChange(name) { + this.$emit('update:name', name) }, onRequiredChange(isRequired) { diff --git a/src/components/Questions/QuestionFile.vue b/src/components/Questions/QuestionFile.vue index f9136d4dc..a086b8426 100644 --- a/src/components/Questions/QuestionFile.vue +++ b/src/components/Questions/QuestionFile.vue @@ -45,7 +45,8 @@ type="multiselect" multiple taggable - :modelValue="extraSettings?.allowedFileExtensions || []" + :options="[]" + :modelValue="allowedFileExtensions" @option:created="onAllowedFileExtensionsAdded" @option:deselected="onAllowedFileExtensionsDeleted" /> @@ -59,7 +60,7 @@ labelOutside :label="t('forms', 'Maximum number of files')" :showTrailingButton="false" - @input="onMaxAllowedFilesCountInput($event.target.value)" /> + @update:modelValue="onMaxAllowedFilesCountInput" /> + @update:modelValue="onMaxFileSizeValueInput" /> + @update:modelValue="onMaxFileSizeUnitInput" /> @@ -239,6 +240,10 @@ export default { return this.extraSettings?.maxAllowedFilesCount || 1 }, + allowedFileExtensions() { + return this.extraSettings?.allowedFileExtensions || [] + }, + allowedFileTypesLabel() { const allowedFileTypes = [] if (this.extraSettings?.allowedFileTypes?.length) {