Skip to content

Commit

Permalink
fix: Fixes input trigger on right mouse click (#4414)
Browse files Browse the repository at this point in the history
* Fixed input trigger on right mouse click

* Resolved comments
  • Loading branch information
navedqb authored Oct 5, 2023
1 parent 49f9ce6 commit 7f429b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/fileupload/FileUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7f429b7

Please sign in to comment.