diff --git a/packages/survey-angular-ui/src/questions/file.component.html b/packages/survey-angular-ui/src/questions/file.component.html index 910633f8cd..162955e935 100644 --- a/packages/survey-angular-ui/src/questions/file.component.html +++ b/packages/survey-angular-ui/src/questions/file.component.html @@ -1,6 +1,6 @@
diff --git a/packages/survey-vue3-ui/src/File.vue b/packages/survey-vue3-ui/src/File.vue index 130a740035..46aa2993d0 100644 --- a/packages/survey-vue3-ui/src/File.vue +++ b/packages/survey-vue3-ui/src/File.vue @@ -6,7 +6,6 @@ tabindex="-1" type="file" :id="question.inputId" - @change="question.doChange" :aria-required="question.ariaRequired" :aria-label="question.ariaLabel" :aria-invalid="question.ariaInvalid" diff --git a/src/knockout/templates/question-file.html b/src/knockout/templates/question-file.html index a359eecb93..2fbc45acd0 100644 --- a/src/knockout/templates/question-file.html +++ b/src/knockout/templates/question-file.html @@ -2,7 +2,7 @@
- + diff --git a/src/question_file.ts b/src/question_file.ts index 7f861990cc..35e7edec00 100644 --- a/src/question_file.ts +++ b/src/question_file.ts @@ -1017,8 +1017,8 @@ export class QuestionFileModel extends QuestionFileModelBase { } } doChange = (event: any) => { - // var src = event.target || event.srcElement; - // this.onChange(src); + var src = event.target || event.srcElement; + this.onChange(src); } doClean = () => { if (this.needConfirmRemoveFile) { diff --git a/src/react/reactquestion_file.tsx b/src/react/reactquestion_file.tsx index c5a7f0ea43..5f4278c855 100644 --- a/src/react/reactquestion_file.tsx +++ b/src/react/reactquestion_file.tsx @@ -37,7 +37,6 @@ export class SurveyQuestionFile extends SurveyQuestionElementBase { id={this.question.inputId} ref={input => (this.setControl(input))} style={!this.isDisplayMode ? {} : { color: "transparent" }} - onChange={!this.isDisplayMode ? this.question.doChange : (() => {})} multiple={this.question.allowMultiple} placeholder={this.question.title} accept={this.question.acceptedTypes} @@ -50,7 +49,6 @@ export class SurveyQuestionFile extends SurveyQuestionElementBase { id={this.question.inputId} ref={input => (this.setControl(input))} style={!this.isDisplayMode ? {} : { color: "transparent" }} - onChange={!this.isDisplayMode ? this.question.doChange : (() => {})} aria-required={this.question.ariaRequired} aria-label={this.question.ariaLabel} aria-invalid={this.question.ariaInvalid} diff --git a/src/vue/file.vue b/src/vue/file.vue index 51e93cc687..97e36ce1ab 100644 --- a/src/vue/file.vue +++ b/src/vue/file.vue @@ -6,7 +6,6 @@ tabindex="-1" type="file" :id="question.inputId" - @change="question.doChange" :aria-required="question.ariaRequired" :aria-label="question.ariaLabel" :aria-invalid="question.ariaInvalid"