From 7f429b7b741628d803161cd6b4fd0c7f53576f1c Mon Sep 17 00:00:00 2001 From: navedqb <109583873+navedqb@users.noreply.github.com> Date: Thu, 5 Oct 2023 18:33:42 +0530 Subject: [PATCH] fix: Fixes input trigger on right mouse click (#4414) * Fixed input trigger on right mouse click * Resolved comments --- components/lib/fileupload/FileUpload.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/fileupload/FileUpload.vue b/components/lib/fileupload/FileUpload.vue index 1da081309..1d7a8c13b 100755 --- a/components/lib/fileupload/FileUpload.vue +++ b/components/lib/fileupload/FileUpload.vue @@ -293,9 +293,9 @@ export default { } } }, - onBasicUploaderClick() { + onBasicUploaderClick(event) { if (this.hasFiles) this.upload(); - else this.$refs.fileInput.click(); + if (event.button === 0) this.$refs.fileInput.click(); }, remove(index) { this.clearInputElement();