alessiomaffeis / vue-picture-input

Mobile-friendly picture file input component for Vue.js 2-3 with image preview, drag and drop, EXIF orientation, and more
MIT License
888 stars 156 forks source link

Component doesn't emit 'change' when dropping file. #170

Open lucifilote opened 11 months ago

lucifilote commented 11 months ago

Drag and drop a file doesn't emit 'change'.

From here, it seems that if the components has supportsPreview prop enabled, the component will not emit 'change' event when dropping a file. if (this.supportsPreview) { this.loadImage(files[0], prefill || false) } else { if (prefill) { this.$emit('prefill') } else { this.$emit('change', this.image) } }