fix: Fixes input trigger on right mouse click (#4414)

* Fixed input trigger on right mouse click

* Resolved comments
pull/4570/head
navedqb 2023-10-05 18:33:42 +05:30 committed by GitHub
parent 49f9ce6022
commit 7f429b7b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -293,9 +293,9 @@ export default {
} }
} }
}, },
onBasicUploaderClick() { onBasicUploaderClick(event) {
if (this.hasFiles) this.upload(); if (this.hasFiles) this.upload();
else this.$refs.fileInput.click(); if (event.button === 0) this.$refs.fileInput.click();
}, },
remove(index) { remove(index) {
this.clearInputElement(); this.clearInputElement();