From 7e8375aee8edb909033c95cec9e96489f2e0a2d1 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sat, 19 Sep 2026 11:58:16 +0300 Subject: [PATCH] fix dropdowns --- app/javascript/submission_form/completed.vue | 7 ++- app/javascript/submission_form/form.vue | 4 +- .../submission_form/initials_step.vue | 5 ++ .../submission_form/signature_step.vue | 7 ++- app/javascript/template_builder/builder.vue | 60 ++++++++++--------- app/views/shared/_navbar.html.erb | 2 +- app/views/submissions/show.html.erb | 20 +++---- app/views/templates/_template.html.erb | 2 +- app/views/users/index.html.erb | 2 +- 9 files changed, 64 insertions(+), 45 deletions(-) diff --git a/app/javascript/submission_form/completed.vue b/app/javascript/submission_form/completed.vue index 809ae3b6e..d44f9d2e6 100644 --- a/app/javascript/submission_form/completed.vue +++ b/app/javascript/submission_form/completed.vue @@ -126,7 +126,7 @@ export default { IconLogin, IconDownload }, - inject: ['baseUrl', 't', 'nativePlatform'], + inject: ['baseUrl', 't'], props: { submitterSlug: { type: String, @@ -186,6 +186,11 @@ export default { type: Object, required: false, default: () => ({}) + }, + nativePlatform: { + type: String, + required: false, + default: '' } }, data () { diff --git a/app/javascript/submission_form/form.vue b/app/javascript/submission_form/form.vue index e46a9bdf5..0bb530634 100644 --- a/app/javascript/submission_form/form.vue +++ b/app/javascript/submission_form/form.vue @@ -503,6 +503,7 @@ :with-qr-button="withQrButton" :submitter="submitter" :show-field-names="showFieldNames" + :native-platform="nativePlatform" @update:reason="values[currentField.preferences?.reason_field_uuid] = $event" @touch-attachment="attachmentsIndex[previousSignatureValue] ? attachmentsIndex[previousSignatureValue].created_at = new Date() : null" @attached="attachments.push($event)" @@ -521,6 +522,7 @@ :attachments-index="attachmentsIndex" :show-field-names="showFieldNames" :submitter-slug="submitterSlug" + :native-platform="nativePlatform" @attached="attachments.push($event)" @start="scrollIntoField(currentField)" @focus="scrollIntoField(currentField)" @@ -652,6 +654,7 @@ :with-confetti="withConfetti" :can-send-email="canSendEmail && !!submitter.email" :submitter-slug="submitterSlug" + :native-platform="nativePlatform" />