Skip to content

Commit ba39a9c

Browse files
committed
Added missing dataUrl to the event as second parameter
1 parent 9736555 commit ba39a9c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ Events emitted by the component to the parent.
133133
| vdropzone-file-added(file) | File added to the dropzone.|
134134
| vdropzone-files-added(file) | Files added to the dropzone.|
135135
| vdropzone-file-added-manually(file) | Manually added file to the dropzone |
136+
| vdropzone-thumbnail(file, dataUrl) | When the thumbnail has been generated. Receives the dataUrl as second parameter. |
136137
| vdropzone-success(file, response) | File successfully uploaded.|
137138
| vdropzone-error(file) | File uploaded encountered an error.|
138139
| vdropzone-removed-file(file, error, xhr) | A file was removed from the dropzone.|

src/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@
299299
// Handle the dropzone events
300300
let vm = this;
301301
302-
this.dropzone.on('thumbnail', function (file) {
303-
vm.$emit('vdropzone-thumbnail', file)
302+
this.dropzone.on('thumbnail', function (file, dataUrl) {
303+
vm.$emit('vdropzone-thumbnail', file, dataUrl)
304304
});
305305
306306
this.dropzone.on('addedfile', function (file) {

0 commit comments

Comments
 (0)