From d2c09b9ef7ac0d7bb4865846a59e4d15ed4116f4 Mon Sep 17 00:00:00 2001 From: Kostiantyn Miakshyn Date: Mon, 30 Mar 2026 00:59:54 +0200 Subject: [PATCH] fix: Prevent form submission during file upload (closes #3230) Signed-off-by: Kostiantyn Miakshyn --- src/components/Questions/QuestionFile.vue | 27 +++++++++++++++++++++++ src/views/Create.vue | 1 + 2 files changed, 28 insertions(+) diff --git a/src/components/Questions/QuestionFile.vue b/src/components/Questions/QuestionFile.vue index 1feb22ee4..99857c9f7 100644 --- a/src/components/Questions/QuestionFile.vue +++ b/src/components/Questions/QuestionFile.vue @@ -80,6 +80,10 @@ + + {{ errorMessage }} + +
    diff --git a/src/views/Create.vue b/src/views/Create.vue index 537b74787..d2f1dba33 100644 --- a/src/views/Create.vue +++ b/src/views/Create.vue @@ -457,6 +457,7 @@ export default { * @param {string|null} subtype the question subtype, see AnswerTypes.subtypes */ async addQuestion(type, subtype = null) { + this.activeQuestionType = null const text = '' this.isLoadingQuestions = true